Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -164,7 +164,7 @@ def generate_reply(history, user_msg: str):
|
|
| 164 |
|
| 165 |
|
| 166 |
# ============================================================
|
| 167 |
-
# 3. Interface Gradio (compatΓvel com HF Spaces)
|
| 168 |
# ============================================================
|
| 169 |
|
| 170 |
with gr.Blocks(
|
|
@@ -220,4 +220,5 @@ with gr.Blocks(
|
|
| 220 |
outputs=[chatbot, user_box, sentimento_box],
|
| 221 |
)
|
| 222 |
|
| 223 |
-
|
|
|
|
|
|
| 164 |
|
| 165 |
|
| 166 |
# ============================================================
|
| 167 |
+
# 3. Interface Gradio (compatΓvel com HF Spaces + queue)
|
| 168 |
# ============================================================
|
| 169 |
|
| 170 |
with gr.Blocks(
|
|
|
|
| 220 |
outputs=[chatbot, user_box, sentimento_box],
|
| 221 |
)
|
| 222 |
|
| 223 |
+
# IMPORTANTE para Spaces: ativar fila (queue) antes de lanΓ§ar
|
| 224 |
+
demo.queue().launch()
|