bubuuunel commited on
Commit
4918f45
1 Parent(s): 2fca03a

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -139,7 +139,7 @@ def predict(user_input,company):
139
  ))
140
  f.write("\n")
141
 
142
- return prediction
143
 
144
  # Set-up the Gradio UI
145
  user_input = gr.Textbox (label = 'Query')
@@ -161,7 +161,7 @@ model_output = gr.Label (label = 'Response')
161
  demo = gr.Interface(
162
  fn=predict,
163
  inputs=[user_input,company_input],
164
- outputs=prediction,
165
  title="RAG on 10k-reports",
166
  description="This API allows you to query on annaul reports",
167
  concurrency_limit=16
 
139
  ))
140
  f.write("\n")
141
 
142
+ return prediction [0]
143
 
144
  # Set-up the Gradio UI
145
  user_input = gr.Textbox (label = 'Query')
 
161
  demo = gr.Interface(
162
  fn=predict,
163
  inputs=[user_input,company_input],
164
+ outputs=model_output,
165
  title="RAG on 10k-reports",
166
  description="This API allows you to query on annaul reports",
167
  concurrency_limit=16