Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,10 +41,10 @@ with gr.Blocks() as demo:
|
|
| 41 |
#fn_name="generate_response"
|
| 42 |
)
|
| 43 |
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
|
| 49 |
user_input.submit(chat_interface, inputs=[chatbot, user_input], outputs=[chatbot, user_input])
|
| 50 |
|
|
|
|
| 41 |
#fn_name="generate_response"
|
| 42 |
)
|
| 43 |
|
| 44 |
+
loading_trigger = gr.Button("Trigger Loading Indicator")
|
| 45 |
+
def show_loading_indicator():
|
| 46 |
+
return "<div id='loading-indicator' style='display:block;'>Caricamento...</div>"
|
| 47 |
+
loading_trigger.click(show_loading_indicator, outputs=loading_indicator)
|
| 48 |
|
| 49 |
user_input.submit(chat_interface, inputs=[chatbot, user_input], outputs=[chatbot, user_input])
|
| 50 |
|