Spaces:
Runtime error
Runtime error
Commit
Β·
55bbc1c
1
Parent(s):
e593add
test input
Browse files
app.py
CHANGED
@@ -108,7 +108,7 @@ def deepseek(image, text_input):
|
|
108 |
det_pattern = r"<\|det\|>\[\[(.+)]]<\|\/det\|>"
|
109 |
|
110 |
det_content = re.search(det_pattern, answer).group(1)
|
111 |
-
bbox = [ int(v.
|
112 |
w, h = image.size()
|
113 |
bbox = [bbox[0] * w, bbox[1] * h, bbox[2] * w, bbox[3] * h]
|
114 |
|
@@ -181,7 +181,7 @@ css = """
|
|
181 |
with gr.Blocks(css=css) as demo:
|
182 |
gr.Markdown(
|
183 |
"""
|
184 |
-
# Demo for
|
185 |
""")
|
186 |
with gr.Row():
|
187 |
with gr.Column():
|
|
|
108 |
det_pattern = r"<\|det\|>\[\[(.+)]]<\|\/det\|>"
|
109 |
|
110 |
det_content = re.search(det_pattern, answer).group(1)
|
111 |
+
bbox = [ int(v.strip()) / 999 for v in det_content.split(",")]
|
112 |
w, h = image.size()
|
113 |
bbox = [bbox[0] * w, bbox[1] * h, bbox[2] * w, bbox[3] * h]
|
114 |
|
|
|
181 |
with gr.Blocks(css=css) as demo:
|
182 |
gr.Markdown(
|
183 |
"""
|
184 |
+
# Demo for Deepseek-VL2: Mixture-of-Experts Vision-Language Models for Advanced Multimodal Understanding
|
185 |
""")
|
186 |
with gr.Row():
|
187 |
with gr.Column():
|