research14 commited on
Commit
04fb6c5
·
1 Parent(s): b9ec6e6

made simple interface

Browse files
Files changed (1) hide show
  1. app.py +10 -6
app.py CHANGED
@@ -15,11 +15,11 @@ iface = gr.Interface(
15
  theme=theme
16
  )
17
 
18
- iface.launch()
 
19
 
20
- blocks = gr.Blocks()
21
-
22
- with blocks as demo:
23
  with gr.Row():
24
  chatgpt_btn = gr.Button("ChatGPT")
25
  llama_btn = gr.Button("LLaMA")
@@ -27,6 +27,8 @@ with blocks as demo:
27
  alpaca_btn = gr.Button("Alpaca")
28
  flant5_btn = gr.Button("Flan-T5")
29
 
 
 
30
  with gr.Row():
31
  chatgpt_btn = gr.Button("ChatGPT")
32
  llama_btn = gr.Button("LLaMA")
@@ -34,11 +36,13 @@ with blocks as demo:
34
  alpaca_btn = gr.Button("Alpaca")
35
  flant5_btn = gr.Button("Flan-T5")
36
 
 
 
37
  with gr.Row():
38
  chatgpt_btn = gr.Button("ChatGPT")
39
  llama_btn = gr.Button("LLaMA")
40
  vicuna_btn = gr.Button("Vicuna")
41
  alpaca_btn = gr.Button("Alpaca")
42
  flant5_btn = gr.Button("Flan-T5")
43
-
44
- demo.launch()
 
15
  theme=theme
16
  )
17
 
18
+ with iface as demo:
19
+ blocks = gr.Blocks()
20
 
21
+ # Strategy 1 - QA-Based Prompting
22
+ strategy1_title = gr.Textbox("Strategy 1 - QA-Based Prompting", style="font-weight: bold; font-size: 16px;")
 
23
  with gr.Row():
24
  chatgpt_btn = gr.Button("ChatGPT")
25
  llama_btn = gr.Button("LLaMA")
 
27
  alpaca_btn = gr.Button("Alpaca")
28
  flant5_btn = gr.Button("Flan-T5")
29
 
30
+ # Strategy 2 - Instruction-Based Prompting
31
+ strategy2_title = gr.Textbox("Strategy 2 - Instruction-Based Prompting", style="font-weight: bold; font-size: 16px;")
32
  with gr.Row():
33
  chatgpt_btn = gr.Button("ChatGPT")
34
  llama_btn = gr.Button("LLaMA")
 
36
  alpaca_btn = gr.Button("Alpaca")
37
  flant5_btn = gr.Button("Flan-T5")
38
 
39
+ # Strategy 3 - Structured Prompting
40
+ strategy3_title = gr.Textbox("Strategy 3 - Structured Prompting", style="font-weight: bold; font-size: 16px;")
41
  with gr.Row():
42
  chatgpt_btn = gr.Button("ChatGPT")
43
  llama_btn = gr.Button("LLaMA")
44
  vicuna_btn = gr.Button("Vicuna")
45
  alpaca_btn = gr.Button("Alpaca")
46
  flant5_btn = gr.Button("Flan-T5")
47
+
48
+ demo.launch()