Spaces:
Running
on
Zero
Running
on
Zero
Darius Morawiec
commited on
Commit
·
e0d3f3e
1
Parent(s):
76a03fa
refactor: Refactor header constants for better readability in the app
Browse files
app.py
CHANGED
|
@@ -38,6 +38,9 @@ else:
|
|
| 38 |
|
| 39 |
|
| 40 |
# Define constants
|
|
|
|
|
|
|
|
|
|
| 41 |
EXAMPLES_DIR = Path(__file__).parent / "examples"
|
| 42 |
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
| 43 |
MODEL_IDS = [
|
|
@@ -146,10 +149,8 @@ def image_to_base64(image):
|
|
| 146 |
|
| 147 |
|
| 148 |
with gr.Blocks(js=SCRIPT) as demo:
|
| 149 |
-
gr.Markdown(
|
| 150 |
-
gr.Markdown(
|
| 151 |
-
"Compare [Qwen3-VL](https://huggingface.co/collections/Qwen/qwen3-vl), [Qwen2.5-VL](https://huggingface.co/collections/Qwen/qwen25-vl) and [Qwen2-VL](https://huggingface.co/collections/Qwen/qwen2-vl) models by [Qwen](https://huggingface.co/Qwen) for object detection."
|
| 152 |
-
)
|
| 153 |
|
| 154 |
with gr.Row():
|
| 155 |
with gr.Column():
|
|
|
|
| 38 |
|
| 39 |
|
| 40 |
# Define constants
|
| 41 |
+
HEADLINE = "# Qwen-VL Object-Detection"
|
| 42 |
+
SUBLINE = "Compare [Qwen3-VL](https://huggingface.co/collections/Qwen/qwen3-vl), [Qwen2.5-VL](https://huggingface.co/collections/Qwen/qwen25-vl) and [Qwen2-VL](https://huggingface.co/collections/Qwen/qwen2-vl) models by [Qwen](https://huggingface.co/Qwen) for object detection."
|
| 43 |
+
|
| 44 |
EXAMPLES_DIR = Path(__file__).parent / "examples"
|
| 45 |
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
| 46 |
MODEL_IDS = [
|
|
|
|
| 149 |
|
| 150 |
|
| 151 |
with gr.Blocks(js=SCRIPT) as demo:
|
| 152 |
+
gr.Markdown(HEADLINE)
|
| 153 |
+
gr.Markdown(SUBLINE)
|
|
|
|
|
|
|
| 154 |
|
| 155 |
with gr.Row():
|
| 156 |
with gr.Column():
|