Spaces:
Sleeping
Sleeping
add queue
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ with gr.Blocks() as demo:
|
|
53 |
submit = gr.Button("Submit")
|
54 |
clear = gr.Button("Clear")
|
55 |
|
56 |
-
examples = gr.Examples(examples=["
|
57 |
|
58 |
#submit.click(bot,[msg,chatbot,temperature, max_length, top_p,top_k],chatbot)
|
59 |
submit.click(user, [msg, chatbot], [msg, chatbot], queue=False).then(
|
@@ -61,4 +61,4 @@ with gr.Blocks() as demo:
|
|
61 |
)
|
62 |
clear.click(lambda: None, None, chatbot, queue=False)
|
63 |
|
64 |
-
demo.launch()
|
|
|
53 |
submit = gr.Button("Submit")
|
54 |
clear = gr.Button("Clear")
|
55 |
|
56 |
+
examples = gr.Examples(examples=["Dokter aku sakit flu dan pilek. Apa yang terjadi denganku?"],inputs=[msg])
|
57 |
|
58 |
#submit.click(bot,[msg,chatbot,temperature, max_length, top_p,top_k],chatbot)
|
59 |
submit.click(user, [msg, chatbot], [msg, chatbot], queue=False).then(
|
|
|
61 |
)
|
62 |
clear.click(lambda: None, None, chatbot, queue=False)
|
63 |
|
64 |
+
demo.queue().launch()
|