research14 commited on
Commit
a7b414a
·
1 Parent(s): 8a2b7a1

made accordion formats

Browse files
Files changed (1) hide show
  1. app.py +21 -21
app.py CHANGED
@@ -22,30 +22,30 @@ with gr.Interface(
22
  chatgpt_api_key = gr.Textbox(label="ChatGPT API Key", type="password", placeholder="Enter your API key")
23
 
24
  # Strategy 1 - QA-Based Prompting
25
- strategy1_title = gr.Textbox("Strategy 1 - QA-Based Prompting", style="font-weight: bold; font-size: 16px;")
26
- with gr.Row():
27
- chatgpt_btn = gr.Button("ChatGPT")
28
- llama_btn = gr.Button("LLaMA")
29
- vicuna_btn = gr.Button("Vicuna")
30
- alpaca_btn = gr.Button("Alpaca")
31
- flant5_btn = gr.Button("Flan-T5")
32
 
33
  # Strategy 2 - Instruction-Based Prompting
34
- strategy2_title = gr.Textbox("Strategy 2 - Instruction-Based Prompting", style="font-weight: bold; font-size: 16px;")
35
- with gr.Row():
36
- chatgpt_btn = gr.Button("ChatGPT")
37
- llama_btn = gr.Button("LLaMA")
38
- vicuna_btn = gr.Button("Vicuna")
39
- alpaca_btn = gr.Button("Alpaca")
40
- flant5_btn = gr.Button("Flan-T5")
41
 
42
  # Strategy 3 - Structured Prompting
43
- strategy3_title = gr.Textbox("Strategy 3 - Structured Prompting", style="font-weight: bold; font-size: 16px")
44
- with gr.Row():
45
- chatgpt_btn = gr.Button("ChatGPT")
46
- llama_btn = gr.Button("LLaMA")
47
- vicuna_btn = gr.Button("Vicuna")
48
- alpaca_btn = gr.Button("Alpaca")
49
- flant5_btn = gr.Button("Flan-T5")
50
 
51
  iface.launch()
 
22
  chatgpt_api_key = gr.Textbox(label="ChatGPT API Key", type="password", placeholder="Enter your API key")
23
 
24
  # Strategy 1 - QA-Based Prompting
25
+ with gr.Accordion("Strategy 1 - QA-Based Prompting", style="font-weight: bold; font-size: 16px;"):
26
+ with gr.Row():
27
+ chatgpt_btn = gr.Button("ChatGPT")
28
+ llama_btn = gr.Button("LLaMA")
29
+ vicuna_btn = gr.Button("Vicuna")
30
+ alpaca_btn = gr.Button("Alpaca")
31
+ flant5_btn = gr.Button("Flan-T5")
32
 
33
  # Strategy 2 - Instruction-Based Prompting
34
+ with gr.Accordion("Strategy 2 - Instruction-Based Prompting", style="font-weight: bold; font-size: 16px;"):
35
+ with gr.Row():
36
+ chatgpt_btn = gr.Button("ChatGPT")
37
+ llama_btn = gr.Button("LLaMA")
38
+ vicuna_btn = gr.Button("Vicuna")
39
+ alpaca_btn = gr.Button("Alpaca")
40
+ flant5_btn = gr.Button("Flan-T5")
41
 
42
  # Strategy 3 - Structured Prompting
43
+ with gr.Accordion("Strategy 3 - Structured Prompting", style="font-weight: bold; font-size: 16px;"):
44
+ with gr.Row():
45
+ chatgpt_btn = gr.Button("ChatGPT")
46
+ llama_btn = gr.Button("LLaMA")
47
+ vicuna_btn = gr.Button("Vicuna")
48
+ alpaca_btn = gr.Button("Alpaca")
49
+ flant5_btn = gr.Button("Flan-T5")
50
 
51
  iface.launch()