Tonic commited on
Commit
d9c4b56
1 Parent(s): ecc7d07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -51,10 +51,10 @@ def query_vectara(question, chat_history, uploaded_file):
51
  return f"{upload_status}\n\nResponse from Vectara API: {response.text}"
52
 
53
 
54
- # Create a Gradio ChatInterface with a text input, a file upload input, and a text output
55
  iface = gr.Interface(
56
  fn=query_vectara,
57
- inputs=[gr.Textbox(default="Type your message here", label="Input Text"), gr.File(label="Upload a file")],
58
  outputs=gr.Textbox(default="Response will appear here", label="Output Text"),
59
  examples=["Hello", "What is the weather today?", "Tell me a joke"],
60
  title="Vectara Chatbot",
 
51
  return f"{upload_status}\n\nResponse from Vectara API: {response.text}"
52
 
53
 
54
+ # Create a Gradio ChatInterface with a text input, a file upload input, and a text output
55
  iface = gr.Interface(
56
  fn=query_vectara,
57
+ inputs=[gr.Textbox(label="Input Text"), gr.File(label="Upload a file")],
58
  outputs=gr.Textbox(default="Response will appear here", label="Output Text"),
59
  examples=["Hello", "What is the weather today?", "Tell me a joke"],
60
  title="Vectara Chatbot",