yuntian-deng commited on
Commit
2f19593
1 Parent(s): f8f020d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -123,7 +123,7 @@ def reset_textbox():
123
 
124
  title = """<h1 align="center">GPT-4 Turbo: Research Preview (128K token limit, Short-Term Availability)</h1>"""
125
  if DISABLED:
126
- title = """<h1 align="center" style="color:red">This app has reached OpenAI's usage limit. We are currently requesting an increase in our quota. Please check back tomorrow.</h1>"""
127
  description = """Language models can be conditioned to act like dialogue agents through a conversational prompt that typically takes the form:
128
  ```
129
  User: <utterance>
@@ -142,7 +142,8 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
142
  theme=theme) as demo:
143
  gr.HTML(title)
144
  #gr.HTML("""<h3 align="center">This app provides you full access to GPT-4 Turbo (128K token limit). You don't need any OPENAI API key.</h1>""")
145
- gr.HTML("""<h3 align="center" style="color: red;">If this app is too busy, consider trying our GPT-3.5 app, which has a much shorter queue time. Visit it below:<br/><a href="https://huggingface.co/spaces/yuntian-deng/ChatGPT">https://huggingface.co/spaces/yuntian-deng/ChatGPT</a></h3>""")
 
146
 
147
  #gr.HTML('''<center><a href="https://huggingface.co/spaces/ysharma/ChatGPT4?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>Duplicate the Space and run securely with your OpenAI API Key</center>''')
148
  with gr.Column(elem_id = "col_container", visible=False) as main_block:
 
123
 
124
  title = """<h1 align="center">GPT-4 Turbo: Research Preview (128K token limit, Short-Term Availability)</h1>"""
125
  if DISABLED:
126
+ title = """<h1 align="center" style="color:red">This app has reached OpenAI's usage limit. Please check back tomorrow.</h1>"""
127
  description = """Language models can be conditioned to act like dialogue agents through a conversational prompt that typically takes the form:
128
  ```
129
  User: <utterance>
 
142
  theme=theme) as demo:
143
  gr.HTML(title)
144
  #gr.HTML("""<h3 align="center">This app provides you full access to GPT-4 Turbo (128K token limit). You don't need any OPENAI API key.</h1>""")
145
+ #gr.HTML("""<h3 align="center" style="color: red;">If this app is too busy, consider trying our GPT-3.5 app, which has a much shorter queue time. Visit it below:<br/><a href="https://huggingface.co/spaces/yuntian-deng/ChatGPT">https://huggingface.co/spaces/yuntian-deng/ChatGPT</a></h3>""")
146
+ gr.HTML("""<h3 align="center" style="color: red;">If this app doesn't respond, it's likely due to our API key hitting the daily limit of our organization. Consider trying our GPT-3.5 app:<br/><a href="https://huggingface.co/spaces/yuntian-deng/ChatGPT">https://huggingface.co/spaces/yuntian-deng/ChatGPT</a></h3>""")
147
 
148
  #gr.HTML('''<center><a href="https://huggingface.co/spaces/ysharma/ChatGPT4?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>Duplicate the Space and run securely with your OpenAI API Key</center>''')
149
  with gr.Column(elem_id = "col_container", visible=False) as main_block: