Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -162,7 +162,7 @@ We currently only support one image at the start of the context! Please start a
|
|
| 162 |
for new_text in response:
|
| 163 |
buffer += new_text
|
| 164 |
generated_text_without_prompt = buffer[:]
|
| 165 |
-
time.sleep(0.
|
| 166 |
yield generated_text_without_prompt
|
| 167 |
|
| 168 |
CSS ="""
|
|
@@ -178,7 +178,7 @@ CSS ="""
|
|
| 178 |
# }
|
| 179 |
# }
|
| 180 |
#component-3 {
|
| 181 |
-
height:
|
| 182 |
transform-origin: top; /* Đảm bảo rằng phần tử mở rộng từ trên xuống */
|
| 183 |
border-style: solid;
|
| 184 |
overflow: hidden;
|
|
@@ -230,10 +230,10 @@ demo = gr.ChatInterface(
|
|
| 230 |
Bias, Risks, and Limitations
|
| 231 |
The model might have biases because it learned from data that could be biased.
|
| 232 |
Users should be cautious of these possible biases when using the model.""",
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
title="❄️ Vintern-
|
| 237 |
multimodal=True,
|
| 238 |
css=CSS
|
| 239 |
)
|
|
|
|
| 162 |
for new_text in response:
|
| 163 |
buffer += new_text
|
| 164 |
generated_text_without_prompt = buffer[:]
|
| 165 |
+
time.sleep(0.02)
|
| 166 |
yield generated_text_without_prompt
|
| 167 |
|
| 168 |
CSS ="""
|
|
|
|
| 178 |
# }
|
| 179 |
# }
|
| 180 |
#component-3 {
|
| 181 |
+
height: 70dvh !important;
|
| 182 |
transform-origin: top; /* Đảm bảo rằng phần tử mở rộng từ trên xuống */
|
| 183 |
border-style: solid;
|
| 184 |
overflow: hidden;
|
|
|
|
| 230 |
Bias, Risks, and Limitations
|
| 231 |
The model might have biases because it learned from data that could be biased.
|
| 232 |
Users should be cautious of these possible biases when using the model.""",
|
| 233 |
+
examples=[{"text": "Mô tả hình ảnh.", "files":["./demo_3.jpg"]},
|
| 234 |
+
{"text": "Trích xuất các thông tin từ ảnh trả về markdown.", "files":["./demo_1.jpg"]},
|
| 235 |
+
{"text": "Viết một bài quảng cáo dài trên mạng xã hội cho hình ảnh.", "files":["./demo_2.jpg"]}],
|
| 236 |
+
title="❄️ Vintern-1B-v3.5-beta Test ❄️",
|
| 237 |
multimodal=True,
|
| 238 |
css=CSS
|
| 239 |
)
|