Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -294,14 +294,7 @@ with gr.Blocks(title="Cosmos-Reason1", theme=gr.themes.Soft()) as demo:
|
|
294 |
example_data = [
|
295 |
[
|
296 |
"group_in_park.jpg", # Replace with your actual image file path
|
297 |
-
|
298 |
-
"What is happening in this image?",
|
299 |
-
0.6, # temperature
|
300 |
-
0.95, # top_p
|
301 |
-
1.05, # repetition_penalty
|
302 |
-
4096, # max_tokens
|
303 |
-
"General Assistant",
|
304 |
-
ROLES["Custom Role"]
|
305 |
]
|
306 |
]
|
307 |
|
@@ -310,14 +303,7 @@ with gr.Blocks(title="Cosmos-Reason1", theme=gr.themes.Soft()) as demo:
|
|
310 |
examples=example_data,
|
311 |
inputs=[
|
312 |
image_input,
|
313 |
-
|
314 |
-
text_input,
|
315 |
-
temperature,
|
316 |
-
top_p,
|
317 |
-
repetition_penalty,
|
318 |
-
max_tokens,
|
319 |
-
role_selector,
|
320 |
-
custom_role_text
|
321 |
],
|
322 |
outputs=[output, status],
|
323 |
fn=process_input,
|
|
|
294 |
example_data = [
|
295 |
[
|
296 |
"group_in_park.jpg", # Replace with your actual image file path
|
297 |
+
"What is happening in this image?"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
298 |
]
|
299 |
]
|
300 |
|
|
|
303 |
examples=example_data,
|
304 |
inputs=[
|
305 |
image_input,
|
306 |
+
text_input
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
307 |
],
|
308 |
outputs=[output, status],
|
309 |
fn=process_input,
|