Spaces:
Running
Running
yuntian-deng
commited on
Commit
•
4081958
1
Parent(s):
7eba8ec
Update app.py
Browse files
app.py
CHANGED
@@ -121,7 +121,7 @@ def predict(inputs, top_p, temperature, chat_counter, chatbot, history, request:
|
|
121 |
def reset_textbox():
|
122 |
return gr.update(value='', interactive=False), gr.update(interactive=False)
|
123 |
|
124 |
-
title = """<h1 align="center">GPT-
|
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:
|
@@ -141,9 +141,9 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
|
|
141 |
#chatbot {height: 520px; overflow: auto;}""",
|
142 |
theme=theme) as demo:
|
143 |
gr.HTML(title)
|
144 |
-
#gr.HTML("""<h3 align="center">This app provides you full access to GPT-
|
145 |
-
#gr.HTML("""<h3 align="center" style="color: red;">If this app is too busy, consider trying our GPT-
|
146 |
-
gr.HTML("""<h3 align="center" style="color: red;">If this app doesn't respond,
|
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:
|
|
|
121 |
def reset_textbox():
|
122 |
return gr.update(value='', interactive=False), gr.update(interactive=False)
|
123 |
|
124 |
+
title = """<h1 align="center">GPT-4O: 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:
|
|
|
141 |
#chatbot {height: 520px; overflow: auto;}""",
|
142 |
theme=theme) as demo:
|
143 |
gr.HTML(title)
|
144 |
+
#gr.HTML("""<h3 align="center">This app provides you full access to GPT-4O (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 other GPT-4O app. Visit it below:<br/><a href="https://huggingface.co/spaces/yuntian-deng/ChatGPT4Turbo">https://huggingface.co/spaces/yuntian-deng/ChatGPT4Turbo</a></h3>""")
|
146 |
+
gr.HTML("""<h3 align="center" style="color: red;">If this app doesn't respond, consider trying our other GPT-4O app:<br/><a href="https://huggingface.co/spaces/yuntian-deng/ChatGPT4Turbo">https://huggingface.co/spaces/yuntian-deng/ChatGPT4Turbo</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:
|