aaryan3781 commited on
Commit
e472af1
·
1 Parent(s): c5acfbd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -10
app.py CHANGED
@@ -335,32 +335,34 @@ iface2 = gr.Interface(
335
 
336
 
337
  iface3 = gr.Interface(
338
- function=function3,
339
  inputs=[
340
  gr.Textbox(label="Input Text"),
341
  gr.Textbox(label="One Shot Example"),
342
  gr.Dropdown(choices=dropdown_options, label="Number of top search results"),
343
  gr.Dropdown(choices=llm_dropdown, label="LLM")
344
  ],
345
- outputs={
346
- "LLM Answer": gr.components.Textbox(),
347
- "Google Search Result": gr.components.Textbox()
348
- }
349
  )
350
 
351
 
352
  iface4 = gr.Interface(
353
- function=function4,
354
  inputs=[
355
  gr.Textbox(label="Input Text"),
356
  gr.Textbox(label="One Shot Example"),
357
  gr.Dropdown(choices=dropdown_options_4, label="Number of top k documents"),
358
  gr.Dropdown(choices=llm_dropdown, label="LLM")
359
  ],
360
- outputs={
361
- "LLM Answer": gr.components.Textbox(),
362
- "Abstract Search Result": gr.components.Textbox()
363
- }
 
 
364
  )
365
 
366
 
 
335
 
336
 
337
  iface3 = gr.Interface(
338
+ function3,
339
  inputs=[
340
  gr.Textbox(label="Input Text"),
341
  gr.Textbox(label="One Shot Example"),
342
  gr.Dropdown(choices=dropdown_options, label="Number of top search results"),
343
  gr.Dropdown(choices=llm_dropdown, label="LLM")
344
  ],
345
+ outputs=[
346
+ gr.Textbox(label="LLM Answer"),
347
+ gr.Textbox(label="Google Search Result")
348
+ ]
349
  )
350
 
351
 
352
  iface4 = gr.Interface(
353
+ function4,
354
  inputs=[
355
  gr.Textbox(label="Input Text"),
356
  gr.Textbox(label="One Shot Example"),
357
  gr.Dropdown(choices=dropdown_options_4, label="Number of top k documents"),
358
  gr.Dropdown(choices=llm_dropdown, label="LLM")
359
  ],
360
+ outputs=[
361
+ gr.Textbox(label="LLM Answer"),
362
+ gr.Textbox(label="Abstract Search Result")
363
+ ]
364
+
365
+
366
  )
367
 
368