AndreaAlessandrelli4 commited on
Commit
4e85244
·
verified ·
1 Parent(s): bb99fae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -74,8 +74,14 @@ def generate(
74
 
75
  chat_interface = gr.ChatInterface(
76
  fn=generate,
77
- chatbot=gr.Chatbot(height=400, label = "AvvoChat", show_copy_button=True, avatar_images=("users.jpg","AvvoVhat.png"), layout="bubble"),
78
  textbox=gr.Textbox(placeholder="Inserisci la tua domanda", container=False, scale=7),
 
 
 
 
 
 
79
  #title="Avvo-Chat",
80
  #description="""Fai una domanda riguardante la legge italiana all'AvvoChat e ricevi una spiegazione semplice al tuo dubbio.""",
81
  theme="soft",
 
74
 
75
  chat_interface = gr.ChatInterface(
76
  fn=generate,
77
+ chatbot=gr.Chatbot(height=400, label = "AvvoChat", show_copy_button=True, avatar_images=("users.jpg","AvvoVhat.png"), layout="bubble",show_share_button=True),
78
  textbox=gr.Textbox(placeholder="Inserisci la tua domanda", container=False, scale=7),
79
+ submit_btn ="Chiedi all'AvvoChat ",
80
+ retry_btn = "Rigenera",
81
+ stop_btn = "Stop",
82
+ undo_btn = None,
83
+ clear_btn = "Pulisci chat",
84
+ fill_height = True,
85
  #title="Avvo-Chat",
86
  #description="""Fai una domanda riguardante la legge italiana all'AvvoChat e ricevi una spiegazione semplice al tuo dubbio.""",
87
  theme="soft",