Spaces:
Runtime error
Runtime error
Commit
·
a7b414a
1
Parent(s):
8a2b7a1
made accordion formats
Browse files
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 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
|
33 |
# Strategy 2 - Instruction-Based Prompting
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
|
42 |
# Strategy 3 - Structured Prompting
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
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()
|