Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -12,12 +12,12 @@ import spaces
|
|
12 |
|
13 |
# Model IDs
|
14 |
MODEL_IDS = {
|
15 |
-
"
|
16 |
-
"
|
17 |
}
|
18 |
PROCESSOR_IDS = {
|
19 |
-
"
|
20 |
-
"
|
21 |
}
|
22 |
COLORS = ['#4285f4', '#db4437', '#f4b400', '#0f9d58', '#e48ef1']
|
23 |
# Device configuration
|
@@ -72,11 +72,14 @@ def parse_segmentation(input_image, input_text, model_choice):
|
|
72 |
######## Demo
|
73 |
|
74 |
INTRO_TEXT = """## PaliGemma WaveUI\n\n
|
75 |
-
|
|
|
|
|
|
|
|
|
76 |
|
77 |
Note:\n\n
|
78 |
|
79 |
-
- this model is fine-tuned on a subset of the WaveUI dataset and may not generalize to all UI elements.
|
80 |
- the task it was fine-tuned on was detection, so it may not generalize to other tasks.
|
81 |
"""
|
82 |
|
|
|
12 |
|
13 |
# Model IDs
|
14 |
MODEL_IDS = {
|
15 |
+
"paligemma-3b-ft-widgetcap-waveui-448": "agentsea/paligemma-3b-ft-widgetcap-waveui-448",
|
16 |
+
"paligemma-3b-ft-waveui-896": "agentsea/paligemma-3b-ft-waveui-896"
|
17 |
}
|
18 |
PROCESSOR_IDS = {
|
19 |
+
"paligemma-3b-ft-widgetcap-waveui-448": "google/paligemma-3b-pt-448",
|
20 |
+
"paligemma-3b-ft-waveui-896": "google/paligemma-3b-pt-896"
|
21 |
}
|
22 |
COLORS = ['#4285f4', '#db4437', '#f4b400', '#0f9d58', '#e48ef1']
|
23 |
# Device configuration
|
|
|
72 |
######## Demo
|
73 |
|
74 |
INTRO_TEXT = """## PaliGemma WaveUI\n\n
|
75 |
+
|
76 |
+
PaliGemma models fine-tuned on the [WaveUI dataset](https://huggingface.co/datasets/agentsea/wave-ui). There are two base-models:\n\n
|
77 |
+
|
78 |
+
- paligemma-3b-ft-widgetcap-waveui-448
|
79 |
+
- paligemma-3b-ft-waveui-896
|
80 |
|
81 |
Note:\n\n
|
82 |
|
|
|
83 |
- the task it was fine-tuned on was detection, so it may not generalize to other tasks.
|
84 |
"""
|
85 |
|