Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,9 +19,8 @@ from EdgeGPT import Chatbot
|
|
19 |
db_path = "./data/s-class-manual"
|
20 |
embeddings = HuggingfaceEmbeddings()
|
21 |
index = FAISS(docs=docs, folder_path=db_path, embeddings=embeddings)
|
22 |
-
|
23 |
-
|
24 |
"""
|
|
|
25 |
# Launch the Gradio UI
|
26 |
def start_gradio():
|
27 |
chatbot_interface = gr.Interface(
|
@@ -29,8 +28,8 @@ def start_gradio():
|
|
29 |
inputs=["text", gr.inputs.Checkbox(label="Create bot"), gr.inputs.Slider(
|
30 |
minimum=1, maximum=10, step=1, label="k")],
|
31 |
outputs="text",
|
32 |
-
title="Owner's Manual",
|
33 |
-
description="Ask your vehicle manual and get
|
34 |
examples=[
|
35 |
["What are the different features of the dashboard console?", True, 2],
|
36 |
["What do they do?", False, 3]
|
|
|
19 |
db_path = "./data/s-class-manual"
|
20 |
embeddings = HuggingfaceEmbeddings()
|
21 |
index = FAISS(docs=docs, folder_path=db_path, embeddings=embeddings)
|
|
|
|
|
22 |
"""
|
23 |
+
|
24 |
# Launch the Gradio UI
|
25 |
def start_gradio():
|
26 |
chatbot_interface = gr.Interface(
|
|
|
28 |
inputs=["text", gr.inputs.Checkbox(label="Create bot"), gr.inputs.Slider(
|
29 |
minimum=1, maximum=10, step=1, label="k")],
|
30 |
outputs="text",
|
31 |
+
title="Mercedes-Benz S-Class Owner's Manual",
|
32 |
+
description="Ask your vehicle's manual questions and get answers",
|
33 |
examples=[
|
34 |
["What are the different features of the dashboard console?", True, 2],
|
35 |
["What do they do?", False, 3]
|