Spaces:
Runtime error
Runtime error
Commit
·
47bb3d2
1
Parent(s):
076d731
test
Browse files
app.py
CHANGED
@@ -37,23 +37,23 @@ def interface(tab_name):
|
|
37 |
vicuna_S1_chatbot = gr.Chatbot(label="vicuna-7b")
|
38 |
llama_S1_chatbot = gr.Chatbot(label="llama-7b")
|
39 |
gpt_S1_chatbot = gr.Chatbot(label="gpt-3.5")
|
40 |
-
clear = gr.ClearButton([
|
41 |
gr.Markdown("Strategy 2 Instruction-Based Prompting")
|
42 |
with gr.Row():
|
43 |
vicuna_S2_chatbot = gr.Chatbot(label="vicuna-7b")
|
44 |
llama_S2_chatbot = gr.Chatbot(label="llama-7b")
|
45 |
gpt_S2_chatbot = gr.Chatbot(label="gpt-3.5")
|
46 |
-
clear = gr.ClearButton([
|
47 |
gr.Markdown("Strategy 3 Structured Prompting")
|
48 |
with gr.Row():
|
49 |
vicuna_S3_chatbot = gr.Chatbot(label="vicuna-7b")
|
50 |
llama_S3_chatbot = gr.Chatbot(label="llama-7b")
|
51 |
gpt_S3_chatbot = gr.Chatbot(label="gpt-3.5")
|
52 |
-
clear = gr.ClearButton([
|
53 |
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
|
58 |
|
59 |
with gr.Blocks() as demo:
|
|
|
37 |
vicuna_S1_chatbot = gr.Chatbot(label="vicuna-7b")
|
38 |
llama_S1_chatbot = gr.Chatbot(label="llama-7b")
|
39 |
gpt_S1_chatbot = gr.Chatbot(label="gpt-3.5")
|
40 |
+
clear = gr.ClearButton([textbox_prompt, vicuna_S1_chatbot])
|
41 |
gr.Markdown("Strategy 2 Instruction-Based Prompting")
|
42 |
with gr.Row():
|
43 |
vicuna_S2_chatbot = gr.Chatbot(label="vicuna-7b")
|
44 |
llama_S2_chatbot = gr.Chatbot(label="llama-7b")
|
45 |
gpt_S2_chatbot = gr.Chatbot(label="gpt-3.5")
|
46 |
+
clear = gr.ClearButton([textbox_prompt, vicuna_S2_chatbot])
|
47 |
gr.Markdown("Strategy 3 Structured Prompting")
|
48 |
with gr.Row():
|
49 |
vicuna_S3_chatbot = gr.Chatbot(label="vicuna-7b")
|
50 |
llama_S3_chatbot = gr.Chatbot(label="llama-7b")
|
51 |
gpt_S3_chatbot = gr.Chatbot(label="gpt-3.5")
|
52 |
+
clear = gr.ClearButton([textbox_prompt, vicuna_S3_chatbot])
|
53 |
|
54 |
+
textbox_prompt.submit(respond, [prompt, vicuna_S1_chatbot], [prompt, vicuna_S1_chatbot])
|
55 |
+
textbox_prompt.submit(respond, [prompt, vicuna_S2_chatbot], [prompt, vicuna_S2_chatbot])
|
56 |
+
textbox_prompt.submit(respond, [prompt, vicuna_S3_chatbot], [prompt, vicuna_S3_chatbot])
|
57 |
|
58 |
|
59 |
with gr.Blocks() as demo:
|