ProfRod100 commited on
Commit
70179e6
Β·
verified Β·
1 Parent(s): ac49ae9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- demo.launch()
 
 
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()