mayankchugh-learning commited on
Commit
475d293
·
verified ·
1 Parent(s): 76e2c0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -86,12 +86,14 @@ def predict(user_input):
86
 
87
  return prediction
88
 
89
-
90
- textbox = gr.Textbox(placeholder="Enter your query here", lines=6)
91
-
92
  # Create the interface
93
  demo = gr.Interface(
94
- inputs=textbox, fn=predict, outputs="text",
 
 
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.",