yuntian-deng commited on
Commit
3bc68b0
1 Parent(s): a5dd68c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -120,7 +120,7 @@ def predict(inputs, top_p, temperature, chat_counter, chatbot, history, request:
120
  def reset_textbox():
121
  return gr.update(value='', interactive=False), gr.update(interactive=False)
122
 
123
- title = """<h1 align="center">GPT4 Chatbot</h1>"""
124
  if DISABLED:
125
  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 in a few days.</h1>"""
126
  description = """Language models can be conditioned to act like dialogue agents through a conversational prompt that typically takes the form:
@@ -131,7 +131,7 @@ User: <utterance>
131
  Assistant: <utterance>
132
  ...
133
  ```
134
- In this app, you can explore the outputs of a gpt-4 LLM.
135
  """
136
 
137
  theme = gr.themes.Default(primary_hue="green")
@@ -140,7 +140,7 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
140
  #chatbot {height: 520px; overflow: auto;}""",
141
  theme=theme) as demo:
142
  gr.HTML(title)
143
- #gr.HTML("""<h3 align="center">This app provides you full access to GPT4 (4096 token limit). You don't need any OPENAI API key.</h1>""")
144
  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>""")
145
 
146
  #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>''')
 
120
  def reset_textbox():
121
  return gr.update(value='', interactive=False), gr.update(interactive=False)
122
 
123
+ title = """<h1 align="center">GPT-4 Turbo Chatbot</h1>"""
124
  if DISABLED:
125
  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 in a few days.</h1>"""
126
  description = """Language models can be conditioned to act like dialogue agents through a conversational prompt that typically takes the form:
 
131
  Assistant: <utterance>
132
  ...
133
  ```
134
+ In this app, you can explore the outputs of a gpt-4 turbo LLM.
135
  """
136
 
137
  theme = gr.themes.Default(primary_hue="green")
 
140
  #chatbot {height: 520px; overflow: auto;}""",
141
  theme=theme) as demo:
142
  gr.HTML(title)
143
+ #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>""")
144
  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>""")
145
 
146
  #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>''')