Spaces:
Runtime error
Runtime error
Commit
·
2acec65
1
Parent(s):
9272cb4
test
Browse files
app.py
CHANGED
|
@@ -13,6 +13,9 @@ with gr.Blocks() as demo:
|
|
| 13 |
|
| 14 |
with gr.Tab("POS"):
|
| 15 |
gr.Markdown("Strategy 1 QA")
|
|
|
|
|
|
|
|
|
|
| 16 |
with gr.Row():
|
| 17 |
vicuna_chatbot1 = gr.Chatbot(label="vicuna-7b", live=True)
|
| 18 |
llama_chatbot1 = gr.Chatbot(label="llama-7b", live=False)
|
|
@@ -27,11 +30,11 @@ with gr.Blocks() as demo:
|
|
| 27 |
vicuna_chatbot3 = gr.Chatbot(label="vicuna-7b", live=True)
|
| 28 |
llama_chatbot3 = gr.Chatbot(label="llama-7b", live=False)
|
| 29 |
gpt_chatbot3 = gr.Chatbot(label="gpt-3.5", live=False)
|
| 30 |
-
with gr.Row():
|
| 31 |
-
prompt = gr.Textbox(show_label=False, placeholder="Enter prompt")
|
| 32 |
-
send_button_POS = gr.Button("Send", scale=0)
|
| 33 |
clear = gr.ClearButton([prompt, vicuna_chatbot1])
|
| 34 |
with gr.Tab("Chunk"):
|
|
|
|
|
|
|
|
|
|
| 35 |
gr.Markdown("Strategy 1 QA")
|
| 36 |
with gr.Row():
|
| 37 |
vicuna_chatbot1_chunk = gr.Chatbot(label="vicuna-7b", live=True)
|
|
@@ -46,10 +49,7 @@ with gr.Blocks() as demo:
|
|
| 46 |
with gr.Row():
|
| 47 |
vicuna_chatbot3_chunk = gr.Chatbot(label="vicuna-7b", live=True)
|
| 48 |
llama_chatbot3_chunk = gr.Chatbot(label="llama-7b", live=False)
|
| 49 |
-
gpt_chatbot3_chunk = gr.Chatbot(label="gpt-3.5", live=False
|
| 50 |
-
with gr.Row():
|
| 51 |
-
prompt_chunk = gr.Textbox(show_label=False, placeholder="Enter prompt")
|
| 52 |
-
send_button_Chunk = gr.Button("Send", scale=0)
|
| 53 |
clear = gr.ClearButton([prompt_chunk, vicuna_chatbot1_chunk])
|
| 54 |
|
| 55 |
# Define the function for generating responses
|
|
|
|
| 13 |
|
| 14 |
with gr.Tab("POS"):
|
| 15 |
gr.Markdown("Strategy 1 QA")
|
| 16 |
+
with gr.Row():
|
| 17 |
+
prompt = gr.Textbox(show_label=False, placeholder="Enter prompt")
|
| 18 |
+
send_button_POS = gr.Button("Send", scale=0)
|
| 19 |
with gr.Row():
|
| 20 |
vicuna_chatbot1 = gr.Chatbot(label="vicuna-7b", live=True)
|
| 21 |
llama_chatbot1 = gr.Chatbot(label="llama-7b", live=False)
|
|
|
|
| 30 |
vicuna_chatbot3 = gr.Chatbot(label="vicuna-7b", live=True)
|
| 31 |
llama_chatbot3 = gr.Chatbot(label="llama-7b", live=False)
|
| 32 |
gpt_chatbot3 = gr.Chatbot(label="gpt-3.5", live=False)
|
|
|
|
|
|
|
|
|
|
| 33 |
clear = gr.ClearButton([prompt, vicuna_chatbot1])
|
| 34 |
with gr.Tab("Chunk"):
|
| 35 |
+
with gr.Row():
|
| 36 |
+
prompt_chunk = gr.Textbox(show_label=False, placeholder="Enter prompt")
|
| 37 |
+
send_button_Chunk = gr.Button("Send", scale=0)
|
| 38 |
gr.Markdown("Strategy 1 QA")
|
| 39 |
with gr.Row():
|
| 40 |
vicuna_chatbot1_chunk = gr.Chatbot(label="vicuna-7b", live=True)
|
|
|
|
| 49 |
with gr.Row():
|
| 50 |
vicuna_chatbot3_chunk = gr.Chatbot(label="vicuna-7b", live=True)
|
| 51 |
llama_chatbot3_chunk = gr.Chatbot(label="llama-7b", live=False)
|
| 52 |
+
gpt_chatbot3_chunk = gr.Chatbot(label="gpt-3.5", live=False
|
|
|
|
|
|
|
|
|
|
| 53 |
clear = gr.ClearButton([prompt_chunk, vicuna_chatbot1_chunk])
|
| 54 |
|
| 55 |
# Define the function for generating responses
|