Spaces:
Running
Running
stable-diffusion-ai
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -118,7 +118,7 @@ def predict(inputs, top_p, temperature, chat_counter, chatbot, history, request:
|
|
118 |
def reset_textbox():
|
119 |
return gr.update(value='', interactive=False), gr.update(interactive=False)
|
120 |
|
121 |
-
title = """<h1 align="center">Chat GPT
|
122 |
if DISABLED:
|
123 |
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>"""
|
124 |
description = """Language models can be conditioned to act like dialogue agents through a conversational prompt that typically takes the form:
|
@@ -138,7 +138,7 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
|
|
138 |
#chatbot {height: 520px; overflow: auto;}""",
|
139 |
theme=theme) as demo:
|
140 |
gr.HTML(title)
|
141 |
-
gr.HTML("""<h3 align="center">This app provides you full access to Chat GPT-
|
142 |
with gr.Column(elem_id = "col_container", visible=True) as main_block:
|
143 |
#openai_api_key = gr.Textbox(type='password', label="Enter only your OpenAI API key here")
|
144 |
chatbot = gr.Chatbot(elem_id='chatbot') #c
|
|
|
118 |
def reset_textbox():
|
119 |
return gr.update(value='', interactive=False), gr.update(interactive=False)
|
120 |
|
121 |
+
title = """<h1 align="center">Free Chat GPT 4 online</h1>"""
|
122 |
if DISABLED:
|
123 |
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>"""
|
124 |
description = """Language models can be conditioned to act like dialogue agents through a conversational prompt that typically takes the form:
|
|
|
138 |
#chatbot {height: 520px; overflow: auto;}""",
|
139 |
theme=theme) as demo:
|
140 |
gr.HTML(title)
|
141 |
+
gr.HTML("""<h3 align="center">This app provides you full access for free to Chat GPT-4 from OpenAI thanks to <a href="https://stablediffusion.fr">Stable Diffusion online AI</a>. You don't need any OPENAI API key.<br><br>If this app doesn't respond, it's likely due to too much visitors. Consider trying <a href="https://stablediffusion.fr/chatgpt4"><b>ChatGPT 4 online</b></a> or <a href="https://stablediffusion.fr/chatgpt3">ChatGPT 3.5</a>, <a href="https://stablediffusion.fr/llama2">Llama 2</a> apps.</h3>""")
|
142 |
with gr.Column(elem_id = "col_container", visible=True) as main_block:
|
143 |
#openai_api_key = gr.Textbox(type='password', label="Enter only your OpenAI API key here")
|
144 |
chatbot = gr.Chatbot(elem_id='chatbot') #c
|