Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,7 +78,9 @@ def chat_interface(message):
|
|
| 78 |
return response
|
| 79 |
|
| 80 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 81 |
-
|
| 82 |
-
|
|
|
|
| 83 |
|
| 84 |
-
demo.launch
|
|
|
|
|
|
| 78 |
return response
|
| 79 |
|
| 80 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 81 |
+
# Use "Textbox" components for both input and output
|
| 82 |
+
input_textbox = gr.Textbox(label="Your question")
|
| 83 |
+
output_textbox = gr.Textbox(label="Assistant's response", value="", editable=False)
|
| 84 |
|
| 85 |
+
# Use demo.launch instead of demo.queue().launch()
|
| 86 |
+
demo.launch(fn=chat_interface, inputs=input_textbox, outputs=output_textbox)
|