itacaiunas commited on
Commit
b2c0a91
1 Parent(s): 005b08f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -9
app.py CHANGED
@@ -1,5 +1,3 @@
1
- TITLE = "LuChat IA"
2
-
3
  from huggingface_hub import InferenceClient
4
  import gradio as gr
5
  import random
@@ -90,24 +88,20 @@ additional_inputs=[
90
  )
91
  ]
92
 
93
- welcome_preview_message = f"""
94
- Bem vindo ao **{TITLE}**
95
- """
96
 
97
 
98
  iface = gr.ChatInterface(fn=generate,
99
  chatbot=mychatbot,
100
  additional_inputs=additional_inputs,
101
- submit_btn='Perguntar',
102
  retry_btn=None,
103
  undo_btn=None,
104
- clear_btn=None
105
  )
106
 
107
  with gr.Blocks() as demo:
108
  gr.HTML("<center><h2 style='font-size: 28px; text-align: center; color: #007BFF;'>LuChat - seu assistente por IA</h2><br/><p><b>Tire suas dúvidas, peça sugestões para melhorias no seu texto e muito mais!</b></p></center>")
109
- mychatbot=gr.Chatbot(height=250)
110
- gr.Textbox(label="Vamos Conversar?", placeholder="Sua mensagem ao LuChat IA.")
111
  iface.render()
112
 
113
  demo.queue().launch(show_api=False)
 
 
 
1
  from huggingface_hub import InferenceClient
2
  import gradio as gr
3
  import random
 
88
  )
89
  ]
90
 
 
 
 
91
 
92
 
93
  iface = gr.ChatInterface(fn=generate,
94
  chatbot=mychatbot,
95
  additional_inputs=additional_inputs,
96
+ submit_btn='Enviar',
97
  retry_btn=None,
98
  undo_btn=None,
99
+ #clear_btn=None
100
  )
101
 
102
  with gr.Blocks() as demo:
103
  gr.HTML("<center><h2 style='font-size: 28px; text-align: center; color: #007BFF;'>LuChat - seu assistente por IA</h2><br/><p><b>Tire suas dúvidas, peça sugestões para melhorias no seu texto e muito mais!</b></p></center>")
104
+ mychatbot=gr.ChatbotInterface(height=250)
 
105
  iface.render()
106
 
107
  demo.queue().launch(show_api=False)