khang119966 commited on
Commit
3a07271
·
verified ·
1 Parent(s): bbbe7df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -148,14 +148,16 @@ def chat(message, history):
148
 
149
  CSS ="""
150
  .contain { display: flex; flex-direction: column; }
151
- #component-0 { height: 100%; }
 
 
 
152
  #chatbot { flex-grow: 1; }
153
  """
154
 
155
  with gr.Blocks(css=CSS) as demo:
156
  chatbot = gr.ChatInterface(
157
  fn=chat,
158
- chatbot = gr.Chatbot(height=500),
159
  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).""",
160
  examples=[{"text": "Mô tả hình ảnh.", "files":["./demo_3.jpg"]},
161
  {"text": "Trích xuất các thông tin từ ảnh.", "files":["./demo_1.jpg"]},
 
148
 
149
  CSS ="""
150
  .contain { display: flex; flex-direction: column; }
151
+ #component-0 { height: 100%;
152
+ transform: scaleY(2); /* Tăng chiều cao lên gấp đôi */
153
+ transform-origin: top; /* Đảm bảo rằng phần tử mở rộng từ trên xuống */
154
+ }
155
  #chatbot { flex-grow: 1; }
156
  """
157
 
158
  with gr.Blocks(css=CSS) as demo:
159
  chatbot = gr.ChatInterface(
160
  fn=chat,
 
161
  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).""",
162
  examples=[{"text": "Mô tả hình ảnh.", "files":["./demo_3.jpg"]},
163
  {"text": "Trích xuất các thông tin từ ảnh.", "files":["./demo_1.jpg"]},