Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -79,14 +79,14 @@ demo = gr.ChatInterface(fn=bot_streaming, title="LLaVA-CoT",
|
|
| 79 |
textbox=gr.MultimodalTextbox(),
|
| 80 |
additional_inputs = [gr.Slider(
|
| 81 |
minimum=512,
|
| 82 |
-
maximum=
|
| 83 |
value=512,
|
| 84 |
step=1,
|
| 85 |
label="Maximum number of new tokens to generate",
|
| 86 |
)
|
| 87 |
],
|
| 88 |
-
examples=[[{"text": "What is on the flower?", "files": ["./Example1.webp"]},
|
| 89 |
-
[{"text": "How to make this pastry?", "files": ["./Example2.png"]},
|
| 90 |
cache_examples=False,
|
| 91 |
description="Upload an image, and start chatting about it. To learn more about LLaVA-CoT, visit [our GitHub page](https://github.com/PKU-YuanGroup/LLaVA-CoT).",
|
| 92 |
stop_btn="Stop Generation",
|
|
|
|
| 79 |
textbox=gr.MultimodalTextbox(),
|
| 80 |
additional_inputs = [gr.Slider(
|
| 81 |
minimum=512,
|
| 82 |
+
maximum=2048,
|
| 83 |
value=512,
|
| 84 |
step=1,
|
| 85 |
label="Maximum number of new tokens to generate",
|
| 86 |
)
|
| 87 |
],
|
| 88 |
+
examples=[[{"text": "What is on the flower?", "files": ["./Example1.webp"]}, 1024],
|
| 89 |
+
[{"text": "How to make this pastry?", "files": ["./Example2.png"]}, 1024]],
|
| 90 |
cache_examples=False,
|
| 91 |
description="Upload an image, and start chatting about it. To learn more about LLaVA-CoT, visit [our GitHub page](https://github.com/PKU-YuanGroup/LLaVA-CoT).",
|
| 92 |
stop_btn="Stop Generation",
|