khang119966 commited on
Commit
9f876d1
1 Parent(s): 4df947a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -143,14 +143,13 @@ def chat(message, history):
143
  for new_text in response:
144
  buffer += new_text
145
  generated_text_without_prompt = buffer[:]
146
- time.sleep(0.04)
147
  yield generated_text_without_prompt
148
 
149
 
150
  demo = gr.ChatInterface(
151
  fn=chat,
152
- chatbot=gr.Chatbot(height=500),
153
- description="""Try [Vintern-1B](https://huggingface.co/5CD-AI/Viet-InternVL2-1B) in this demo. Vintern 1B is a multimodal large language model series, featuring models of various sizes. For each size, we release instruction-tuned models optimized for multimodal tasks. Vintern-1B consists of InternViT-300M-448px, an MLP projector, and Qwen2-0.5B-Instruct.""",
154
  examples=[{"text": "Mô tả hình ảnh.", "files":["./demo_3.jpg"]},
155
  {"text": "Trích xuất các thông tin từ ảnh.", "files":["./demo_1.jpg"]},
156
  {"text": "Mô tả hình ảnh một cách chi tiết.", "files":["./demo_2.jpg"]}],
 
143
  for new_text in response:
144
  buffer += new_text
145
  generated_text_without_prompt = buffer[:]
146
+ time.sleep(0.01)
147
  yield generated_text_without_prompt
148
 
149
 
150
  demo = gr.ChatInterface(
151
  fn=chat,
152
+ description="""Try [Vintern-1B](https://huggingface.co/5CD-AI/Viet-InternVL2-1B) in this demo. Vintern 1B is a multimodal large language model series, featuring models of various sizes. For each size, we release instruction-tuned models optimized for multimodal tasks. Vintern-1B consists of [InternViT-300M-448px](https://huggingface.co/OpenGVLab/InternViT-300M-448px), an MLP projector, and [Qwen2-0.5B-Instruct](https://huggingface.co/Qwen/Qwen2-0.5B-Instruct).""",
 
153
  examples=[{"text": "Mô tả hình ảnh.", "files":["./demo_3.jpg"]},
154
  {"text": "Trích xuất các thông tin từ ảnh.", "files":["./demo_1.jpg"]},
155
  {"text": "Mô tả hình ảnh một cách chi tiết.", "files":["./demo_2.jpg"]}],