Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
57 |
-
gr.inputs.Textbox(label="Ask a question:"),
|
58 |
gr.inputs.File(label="Upload a file")
|
59 |
],
|
60 |
-
|
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()
|