Spaces:
Sleeping
Sleeping
Commit
·
2251e1f
1
Parent(s):
fdcf80f
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,17 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def
|
4 |
-
|
|
|
|
|
|
|
5 |
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
def response_print(model_list, response_list):
|
4 |
+
answer = ""
|
5 |
+
for idx in rnage(len(model_list)):
|
6 |
+
answer = answer + f"# {model_list[idx]}'s response: {"CoT" if response_list else "None"}\n"
|
7 |
+
return answer
|
8 |
|
9 |
+
demo = gr.Interface(
|
10 |
+
response_print,
|
11 |
+
[
|
12 |
+
gr.CheckboxGroup(["Llama2", "Alpaca", "Vicuna", "Koala", "Falcon", "Baize", "WizardLM", "Orca", "phi-1.5"], label="Model Selection", info="Choose 3 LMs to participate in LLM Agora."),
|
13 |
+
gr.Checkbox(label="CoT", info="Do you want to use CoT for inference?")
|
14 |
+
],
|
15 |
+
"text",
|
16 |
+
)
|
17 |
+
demo.launch()
|