Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -148,20 +148,20 @@ def chat(message, history):
|
|
| 148 |
|
| 149 |
CSS ="""
|
| 150 |
|
| 151 |
-
@media only screen and (max-width: 600px){
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
}
|
| 162 |
|
| 163 |
#component-3 {
|
| 164 |
-
height:
|
| 165 |
transform-origin: top; /* Đảm bảo rằng phần tử mở rộng từ trên xuống */
|
| 166 |
border-style: solid;
|
| 167 |
overflow: hidden;
|
|
@@ -174,7 +174,7 @@ CSS ="""
|
|
| 174 |
|
| 175 |
demo = gr.ChatInterface(
|
| 176 |
fn=chat,
|
| 177 |
-
description="""Try [Vintern-1B](https://huggingface.co/5CD-AI/Viet-InternVL2-1B) in this demo. Vintern-1B
|
| 178 |
examples=[{"text": "Mô tả hình ảnh.", "files":["./demo_3.jpg"]},
|
| 179 |
{"text": "Trích xuất các thông tin từ ảnh.", "files":["./demo_1.jpg"]},
|
| 180 |
{"text": "Mô tả hình ảnh một cách chi tiết.", "files":["./demo_2.jpg"]}],
|
|
|
|
| 148 |
|
| 149 |
CSS ="""
|
| 150 |
|
| 151 |
+
# @media only screen and (max-width: 600px){
|
| 152 |
+
# #component-3 {
|
| 153 |
+
# height: 90dvh !important;
|
| 154 |
+
# transform-origin: top; /* Đảm bảo rằng phần tử mở rộng từ trên xuống */
|
| 155 |
+
# border-style: solid;
|
| 156 |
+
# overflow: hidden;
|
| 157 |
+
# flex-grow: 1;
|
| 158 |
+
# min-width: min(160px, 100%);
|
| 159 |
+
# border-width: var(--block-border-width);
|
| 160 |
+
# }
|
| 161 |
+
# }
|
| 162 |
|
| 163 |
#component-3 {
|
| 164 |
+
height: 80dvh !important;
|
| 165 |
transform-origin: top; /* Đảm bảo rằng phần tử mở rộng từ trên xuống */
|
| 166 |
border-style: solid;
|
| 167 |
overflow: hidden;
|
|
|
|
| 174 |
|
| 175 |
demo = gr.ChatInterface(
|
| 176 |
fn=chat,
|
| 177 |
+
description="""Try [Vintern-1B](https://huggingface.co/5CD-AI/Viet-InternVL2-1B) in this demo. 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).""",
|
| 178 |
examples=[{"text": "Mô tả hình ảnh.", "files":["./demo_3.jpg"]},
|
| 179 |
{"text": "Trích xuất các thông tin từ ảnh.", "files":["./demo_1.jpg"]},
|
| 180 |
{"text": "Mô tả hình ảnh một cách chi tiết.", "files":["./demo_2.jpg"]}],
|