Spaces:
Running
on
Zero
Running
on
Zero
MohamedRashad
commited on
Commit
•
2f44903
1
Parent(s):
6f2f73e
Refactor model ID handling and launch demo in app.py
Browse files
app.py
CHANGED
@@ -201,4 +201,5 @@ with gr.Blocks() as demo:
|
|
201 |
submit_btn.click(generate_both, inputs=[system_prompt, input_text, chatbot_a, chatbot_b, max_new_tokens, temperature, top_p, repetition_penalty], outputs=[chatbot_a, chatbot_b])
|
202 |
clear_btn.click(clear, outputs=[chatbot_a, chatbot_b])
|
203 |
|
204 |
-
|
|
|
|
201 |
submit_btn.click(generate_both, inputs=[system_prompt, input_text, chatbot_a, chatbot_b, max_new_tokens, temperature, top_p, repetition_penalty], outputs=[chatbot_a, chatbot_b])
|
202 |
clear_btn.click(clear, outputs=[chatbot_a, chatbot_b])
|
203 |
|
204 |
+
if __name__ == "__main__":
|
205 |
+
demo.queue().launch()
|