research14 commited on
Commit
6d53495
·
1 Parent(s): 182a838
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -21,17 +21,15 @@ def create_gradio_interface():
21
  # Section 3: Strategy 3
22
  strategy_3 = gr.inputs.CheckboxGroup(label="Strategy 3", choices=["ChatGPT", "LLaMA", "Vicuna", "Alpaca", "Flan-T5"])
23
 
 
 
 
24
  # Define the interface layout
25
  interface = gr.Interface(
26
  fn=search,
27
- inputs=[input_box, default_options],
28
- outputs="text",
29
- layout=[
30
- [input_box, default_options],
31
- ["Section 1: Strategy 1", strategy_1],
32
- ["Section 2: Strategy 2", strategy_2],
33
- ["Section 3: Strategy 3", strategy_3]
34
- ],
35
  live=True,
36
  live_output=True
37
  )
 
21
  # Section 3: Strategy 3
22
  strategy_3 = gr.inputs.CheckboxGroup(label="Strategy 3", choices=["ChatGPT", "LLaMA", "Vicuna", "Alpaca", "Flan-T5"])
23
 
24
+ # Search results section
25
+ search_results = gr.outputs.Textbox(label="Search Results")
26
+
27
  # Define the interface layout
28
  interface = gr.Interface(
29
  fn=search,
30
+ inputs=[input_box, default_options, strategy_1, strategy_2, strategy_3],
31
+ outputs=search_results,
32
+ layout="vertical",
 
 
 
 
 
33
  live=True,
34
  live_output=True
35
  )