Tonic commited on
Commit
9af995d
·
1 Parent(s): cf7f506

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -5
app.py CHANGED
@@ -53,13 +53,18 @@ def query_vectara(question, chat_history, uploaded_file):
53
  # Create a Gradio ChatInterface
54
  iface = gr.ChatInterface(
55
  fn=query_vectara,
56
- inputs=[
57
- gr.inputs.Textbox(label="Ask a question:"),
58
  gr.inputs.File(label="Upload a file")
59
  ],
60
- outputs=gr.outputs.Textbox(),
61
  title="Vectara Chatbot",
62
- description="Ask me anything using the Vectara API!"
 
 
 
 
 
 
63
  )
64
 
65
- iface.launch()
 
53
  # Create a Gradio ChatInterface
54
  iface = gr.ChatInterface(
55
  fn=query_vectara,
56
+ additional_inputs=[
 
57
  gr.inputs.File(label="Upload a file")
58
  ],
59
+ examples=["Hello", "What is the weather today?", "Tell me a joke"],
60
  title="Vectara Chatbot",
61
+ description="Ask me anything using the Vectara API!",
62
+ submit_btn="Send",
63
+ stop_btn="Stop",
64
+ retry_btn="Retry",
65
+ undo_btn="Undo",
66
+ clear_btn="Clear",
67
+ autofocus=True
68
  )
69
 
70
+ iface.launch()