Spaces:
Runtime error
Runtime error
Commit
·
19763dc
1
Parent(s):
55ff5fe
Updated app
Browse files
app.py
CHANGED
|
@@ -41,7 +41,13 @@ model.load_adapter(adapter_path)
|
|
| 41 |
|
| 42 |
processor = Qwen2VLProcessor.from_pretrained(model_id)
|
| 43 |
|
| 44 |
-
DESCRIPTION = "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
kwargs = {}
|
| 47 |
kwargs['torch_dtype'] = torch.bfloat16
|
|
@@ -111,7 +117,7 @@ css = """
|
|
| 111 |
|
| 112 |
with gr.Blocks(css=css) as demo:
|
| 113 |
gr.Markdown(DESCRIPTION)
|
| 114 |
-
with gr.Tab(label="Qwen2-VL-7B Input"):
|
| 115 |
with gr.Row():
|
| 116 |
with gr.Column():
|
| 117 |
input_img = gr.Image(label="Input Picture")
|
|
|
|
| 41 |
|
| 42 |
processor = Qwen2VLProcessor.from_pretrained(model_id)
|
| 43 |
|
| 44 |
+
DESCRIPTION = """
|
| 45 |
+
|
| 46 |
+
#Qwen2-VL-7B-trl-sft-ChartQA Demo
|
| 47 |
+
|
| 48 |
+
[Qwen2-VL-7B Demo](https://huggingface.co/Qwen/Qwen2-VL-7B-Instruct)
|
| 49 |
+
|
| 50 |
+
"""
|
| 51 |
|
| 52 |
kwargs = {}
|
| 53 |
kwargs['torch_dtype'] = torch.bfloat16
|
|
|
|
| 117 |
|
| 118 |
with gr.Blocks(css=css) as demo:
|
| 119 |
gr.Markdown(DESCRIPTION)
|
| 120 |
+
with gr.Tab(label="Qwen2-VL-7B-trl-sft-ChartQA Input"):
|
| 121 |
with gr.Row():
|
| 122 |
with gr.Column():
|
| 123 |
input_img = gr.Image(label="Input Picture")
|