Spaces:
Running
on
Zero
Running
on
Zero
aifeifei798
commited on
Commit
•
555d0b9
1
Parent(s):
2727615
Update app.py
Browse files
app.py
CHANGED
@@ -159,16 +159,7 @@ with gr.Blocks(css=css) as demo:
|
|
159 |
label="Prompt",
|
160 |
show_label=False,
|
161 |
placeholder="Enter your prompt",
|
162 |
-
|
163 |
-
["CohereForAI/c4ai-command-r-plus-08-2024",
|
164 |
-
"meta-llama/Meta-Llama-3.1-70B-Instruct",
|
165 |
-
"Qwen/Qwen2.5-72B-Instruct",
|
166 |
-
"nvidia/Llama-3.1-Nemotron-70B-Instruct-HF",
|
167 |
-
"NousResearch/Hermes-3-Llama-3.1-8B",
|
168 |
-
"mistralai/Mistral-Nemo-Instruct-2407",
|
169 |
-
"microsoft/Phi-3.5-mini-instruct"],
|
170 |
-
value="CohereForAI/c4ai-command-r-plus-08-2024"
|
171 |
-
)]
|
172 |
)
|
173 |
run_button = gr.Button("Run")
|
174 |
result = gr.Image(label="Result", show_label=False, interactive=False)
|
@@ -225,6 +216,16 @@ with gr.Blocks(css=css) as demo:
|
|
225 |
predict,
|
226 |
type="messages",
|
227 |
multimodal=True,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
228 |
)
|
229 |
gr.on(
|
230 |
triggers=[run_button.click, prompt.submit],
|
|
|
159 |
label="Prompt",
|
160 |
show_label=False,
|
161 |
placeholder="Enter your prompt",
|
162 |
+
container=False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
)
|
164 |
run_button = gr.Button("Run")
|
165 |
result = gr.Image(label="Result", show_label=False, interactive=False)
|
|
|
216 |
predict,
|
217 |
type="messages",
|
218 |
multimodal=True,
|
219 |
+
additional_inputs =[gr.Dropdown(
|
220 |
+
["CohereForAI/c4ai-command-r-plus-08-2024",
|
221 |
+
"meta-llama/Meta-Llama-3.1-70B-Instruct",
|
222 |
+
"Qwen/Qwen2.5-72B-Instruct",
|
223 |
+
"nvidia/Llama-3.1-Nemotron-70B-Instruct-HF",
|
224 |
+
"NousResearch/Hermes-3-Llama-3.1-8B",
|
225 |
+
"mistralai/Mistral-Nemo-Instruct-2407",
|
226 |
+
"microsoft/Phi-3.5-mini-instruct"],
|
227 |
+
value="mistralai/Mistral-Nemo-Instruct-2407"
|
228 |
+
)]
|
229 |
)
|
230 |
gr.on(
|
231 |
triggers=[run_button.click, prompt.submit],
|