Keytaro commited on
Commit
8419a92
·
1 Parent(s): 00cfd9c

mod app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -151,7 +151,7 @@ def predict(user_input,company):
151
  ))
152
  f.write("\n")
153
 
154
- return prediction
155
 
156
  # Set-up the Gradio UI
157
  # Add text box and radio button to the interface
@@ -172,7 +172,11 @@ inputs = [
172
  gr.Radio(label="Company", choices=["Amazon", "Google", "Microsoft", "Meta", "IBM"]),
173
  ]
174
 
175
- output = gr.Textbox(label="Answer")
 
 
 
 
176
 
177
  # Create the interface
178
  # For the inputs parameter of Interface provide [textbox,company]
 
151
  ))
152
  f.write("\n")
153
 
154
+ return (prediction, user_input, context_for_query)
155
 
156
  # Set-up the Gradio UI
157
  # Add text box and radio button to the interface
 
172
  gr.Radio(label="Company", choices=["Amazon", "Google", "Microsoft", "Meta", "IBM"]),
173
  ]
174
 
175
+ output = [
176
+ gr.Textbox(label="Answer"),
177
+ gr.Textbox(label="query"),
178
+ gr.Textbox(label="context_for_query")
179
+ ]
180
 
181
  # Create the interface
182
  # For the inputs parameter of Interface provide [textbox,company]