Spaces:
Runtime error
Runtime error
Commit ·
d18012e
1
Parent(s): fcd9b4e
Update app.py
Browse files
app.py
CHANGED
|
@@ -477,9 +477,9 @@ with gr.Blocks() as demo:
|
|
| 477 |
b2.click(qa2, inputs=[question2,radio2], outputs=answer2)
|
| 478 |
|
| 479 |
with gr.Tab("ChatGPT"):
|
| 480 |
-
with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
|
| 481 |
-
|
| 482 |
-
|
| 483 |
gr.HTML(title)
|
| 484 |
gr.HTML("""<h3 align="center">This app provides you full access to GPT-3.5 (4096 token limit). You don't need any OPENAI API key.</h1>""")
|
| 485 |
#gr.HTML('''<center><a href="https://huggingface.co/spaces/yuntian-deng/ChatGPT?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>Duplicate the Space and run securely with your OpenAI API Key</center>''')
|
|
@@ -530,7 +530,7 @@ with gr.Blocks() as demo:
|
|
| 530 |
b1.click(reset_textbox, [], [inputs, b1], queue=False)
|
| 531 |
b1.click(predict, [inputs, top_p, temperature, chat_counter, chatbot, state], [chatbot, state, chat_counter, server_status_code, inputs, b1],) #openai_api_key
|
| 532 |
|
| 533 |
-
demo.queue(max_size=20, concurrency_count=10, api_open=False).launch()
|
| 534 |
|
| 535 |
|
| 536 |
|
|
|
|
| 477 |
b2.click(qa2, inputs=[question2,radio2], outputs=answer2)
|
| 478 |
|
| 479 |
with gr.Tab("ChatGPT"):
|
| 480 |
+
# with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
|
| 481 |
+
# #chatbot {height: 520px; overflow: auto;}""",
|
| 482 |
+
# ) as demo:
|
| 483 |
gr.HTML(title)
|
| 484 |
gr.HTML("""<h3 align="center">This app provides you full access to GPT-3.5 (4096 token limit). You don't need any OPENAI API key.</h1>""")
|
| 485 |
#gr.HTML('''<center><a href="https://huggingface.co/spaces/yuntian-deng/ChatGPT?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>Duplicate the Space and run securely with your OpenAI API Key</center>''')
|
|
|
|
| 530 |
b1.click(reset_textbox, [], [inputs, b1], queue=False)
|
| 531 |
b1.click(predict, [inputs, top_p, temperature, chat_counter, chatbot, state], [chatbot, state, chat_counter, server_status_code, inputs, b1],) #openai_api_key
|
| 532 |
|
| 533 |
+
# demo.queue(max_size=20, concurrency_count=10, api_open=False).launch()
|
| 534 |
|
| 535 |
|
| 536 |
|