h-siyuan commited on
Commit
d31c2af
·
verified ·
1 Parent(s): a2489f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,7 +12,7 @@ from datetime import datetime
12
  import numpy as np
13
 
14
  # Define constants
15
- DESCRIPTION = "[ShowUI-2B Demo](https://huggingface.co/showlab/ShowUI-2B)"
16
  _SYSTEM = "Based on the screenshot of the page, I give a text description and you give its corresponding location. The coordinate represents a clickable location [x, y] for an element, which is a relative coordinate on the screenshot, scaled from 0 to 1."
17
  MIN_PIXELS = 256 * 28 * 28
18
  MAX_PIXELS = 1344 * 28 * 28
@@ -121,7 +121,7 @@ with open("./assets/showui.png", "rb") as image_file:
121
 
122
  # Define layout and UI
123
  def build_demo(embed_mode, concurrency_count=1):
124
- with gr.Blocks(title="ShowUI-2B Demo", theme=gr.themes.Default()) as demo:
125
  # State to store the consistent image path
126
  state_image_path = gr.State(value=None)
127
 
 
12
  import numpy as np
13
 
14
  # Define constants
15
+ DESCRIPTION = "[ShowUI Demo](https://huggingface.co/showlab/ShowUI-2B)"
16
  _SYSTEM = "Based on the screenshot of the page, I give a text description and you give its corresponding location. The coordinate represents a clickable location [x, y] for an element, which is a relative coordinate on the screenshot, scaled from 0 to 1."
17
  MIN_PIXELS = 256 * 28 * 28
18
  MAX_PIXELS = 1344 * 28 * 28
 
121
 
122
  # Define layout and UI
123
  def build_demo(embed_mode, concurrency_count=1):
124
+ with gr.Blocks(title="ShowUI Demo", theme=gr.themes.Default()) as demo:
125
  # State to store the consistent image path
126
  state_image_path = gr.State(value=None)
127