Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -143,15 +143,16 @@ def chat(message, history):
|
|
| 143 |
for new_text in response:
|
| 144 |
buffer += new_text
|
| 145 |
generated_text_without_prompt = buffer[:]
|
| 146 |
-
time.sleep(0.
|
| 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": "
|
|
|
|
| 155 |
{"text": "Mô tả hình ảnh một cách chi tiết.", "files":["./demo_2.jpg"]}],
|
| 156 |
title="❄️ Vintern-1B ❄️",
|
| 157 |
multimodal=True,
|
|
|
|
| 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"]}],
|
| 157 |
title="❄️ Vintern-1B ❄️",
|
| 158 |
multimodal=True,
|