Jeice commited on
Commit
10962e6
·
verified ·
1 Parent(s): 7a1233d

corrigido2

Browse files
Files changed (1) hide show
  1. app.py +10 -14
app.py CHANGED
@@ -1,12 +1,10 @@
1
  """
2
- 🤖 N8n Assistant - Versão Corrigida e Simplificada
3
  Chatbot inteligente para dúvidas sobre n8n - Compatível com Hugging Face Spaces
4
 
5
- CORREÇÕES APLICADAS:
6
- - Requirements.txt sem versões específicas (evita conflitos)
7
- - Código simplificado mas robusto
8
- - Tratamento de erros essencial
9
- - Interface limpa e funcional
10
  """
11
 
12
  import os
@@ -227,7 +225,7 @@ def processar_pergunta(pergunta: str) -> str:
227
  return assistant.responder(pergunta)
228
 
229
 
230
- # Interface Gradio
231
  with gr.Blocks(theme=gr.themes.Soft(), title="N8n Assistant") as demo:
232
 
233
  # Cabeçalho
@@ -241,15 +239,11 @@ with gr.Blocks(theme=gr.themes.Soft(), title="N8n Assistant") as demo:
241
  """
242
  )
243
 
244
- # Layout principal
245
  with gr.Row():
246
  with gr.Column(scale=1):
247
- gr.Image(
248
- value="https://n8n.io/images/n8n-logo.png",
249
- width=120,
250
- show_label=False,
251
- interactive=False
252
- )
253
 
254
  with gr.Column(scale=4):
255
  gr.Markdown("## Como posso ajudar você com o n8n?")
@@ -283,6 +277,8 @@ with gr.Blocks(theme=gr.themes.Soft(), title="N8n Assistant") as demo:
283
  - Como configurar webhooks no n8n?
284
  - Quais são as melhores práticas para workflows?
285
  - Como debugar erros nos nodes?
 
 
286
  """
287
  )
288
 
 
1
  """
2
+ 🤖 N8n Assistant - Versão Corrigida (SEM ERRO DE IMAGEM)
3
  Chatbot inteligente para dúvidas sobre n8n - Compatível com Hugging Face Spaces
4
 
5
+ CORREÇÃO APLICADA:
6
+ - Removido componente Image problemático que causava erro 404
7
+ - Mantida toda funcionalidade do sistema
 
 
8
  """
9
 
10
  import os
 
225
  return assistant.responder(pergunta)
226
 
227
 
228
+ # Interface Gradio - SEM COMPONENTE IMAGE PROBLEMÁTICO
229
  with gr.Blocks(theme=gr.themes.Soft(), title="N8n Assistant") as demo:
230
 
231
  # Cabeçalho
 
239
  """
240
  )
241
 
242
+ # Layout principal - SEM IMAGEM
243
  with gr.Row():
244
  with gr.Column(scale=1):
245
+ # REMOVIDO: componente gr.Image que causava erro 404
246
+ gr.Markdown("### 🤖 N8n Bot")
 
 
 
 
247
 
248
  with gr.Column(scale=4):
249
  gr.Markdown("## Como posso ajudar você com o n8n?")
 
277
  - Como configurar webhooks no n8n?
278
  - Quais são as melhores práticas para workflows?
279
  - Como debugar erros nos nodes?
280
+ - Como usar condições nos workflows?
281
+ - Quais nodes usar para automação de email?
282
  """
283
  )
284