bubuuunel commited on
Commit
2199974
1 Parent(s): 8e59f13

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -137,18 +137,17 @@ def predict(user_input,company):
137
 
138
  # Set-up the Gradio UI
139
  user_input = gr.Textbox (label = 'Query')
140
- company_input = gr.Dropdown(
141
  ['aws','google','IBM','Meta','msft'],
142
  label = 'company'
143
- )
144
 
145
  model_output = gr.Textbox (label = 'Response')
146
 
147
  # Add text box and radio button to the interface
148
  # The radio button is used to select the company 10k report in which the context needs to be retrieved.
149
 
150
- textbox = gr.Textbox()
151
- company = gr.Radio()
152
 
153
  # Create the interface
154
  # For the inputs parameter of Interface provide [textbox,company]
@@ -156,7 +155,7 @@ company = gr.Radio()
156
  demo = gr.Interface(
157
  fn=predict,
158
  inputs=[user_input,company],
159
- outputs=model_response,
160
  title="RAG on 10k-reports",
161
  description="This API allows you to query on annaul reports",
162
  concurrency_limit=16
 
137
 
138
  # Set-up the Gradio UI
139
  user_input = gr.Textbox (label = 'Query')
140
+ company_input = gr.Radio(
141
  ['aws','google','IBM','Meta','msft'],
142
  label = 'company'
143
+ )
144
 
145
  model_output = gr.Textbox (label = 'Response')
146
 
147
  # Add text box and radio button to the interface
148
  # The radio button is used to select the company 10k report in which the context needs to be retrieved.
149
 
150
+
 
151
 
152
  # Create the interface
153
  # For the inputs parameter of Interface provide [textbox,company]
 
155
  demo = gr.Interface(
156
  fn=predict,
157
  inputs=[user_input,company],
158
+ outputs=model_output,
159
  title="RAG on 10k-reports",
160
  description="This API allows you to query on annaul reports",
161
  concurrency_limit=16