Xkev commited on
Commit
4a40733
·
verified ·
1 Parent(s): 717c78e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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=1024,
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"]},512],
89
- [{"text": "How to make this pastry?", "files": ["./Example2.png"]},512]],
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",