nph4rd commited on
Commit
eab0af2
·
verified ·
1 Parent(s): fa8db89

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -12,12 +12,12 @@ import spaces
12
 
13
  # Model IDs
14
  MODEL_IDS = {
15
- "Model 1 (Widgetcap 448)": "agentsea/paligemma-3b-ft-widgetcap-waveui-448",
16
- "Model 2 (WaveUI 896)": "agentsea/paligemma-3b-ft-waveui-896"
17
  }
18
  PROCESSOR_IDS = {
19
- "Model 1 (Widgetcap 448)": "google/paligemma-3b-pt-448",
20
- "Model 2 (WaveUI 896)": "google/paligemma-3b-pt-896"
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
- [PaliGemma Widgetcap 448](https://huggingface.co/google/paligemma-3b-ft-widgetcap-448) fine-tuned on the [WaveUI-25k](https://huggingface.co/datasets/agentsea/wave-ui-25k) dataset for UI element detection.\n\n
 
 
 
 
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