Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -86,12 +86,14 @@ def predict(user_input):
|
|
86 |
|
87 |
return prediction
|
88 |
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
# Create the interface
|
93 |
demo = gr.Interface(
|
94 |
-
|
|
|
|
|
95 |
title="AMA on Tesla 10-K statements",
|
96 |
description="This web API presents an interface to ask questions on contents of the Tesla 10-K reports for the period 2019 - 2023.",
|
97 |
article="Note that questions that are not relevant to the Tesla 10-K report will not be answered.",
|
|
|
86 |
|
87 |
return prediction
|
88 |
|
89 |
+
def hellohi(user_input):
|
90 |
+
return user_input+" hi"
|
91 |
+
|
92 |
# Create the interface
|
93 |
demo = gr.Interface(
|
94 |
+
fn=hellohi,
|
95 |
+
inputs=gr.Textbox(placeholder="Enter your query here", lines=6),
|
96 |
+
outputs="text",
|
97 |
title="AMA on Tesla 10-K statements",
|
98 |
description="This web API presents an interface to ask questions on contents of the Tesla 10-K reports for the period 2019 - 2023.",
|
99 |
article="Note that questions that are not relevant to the Tesla 10-K report will not be answered.",
|