Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ from datetime import datetime
|
|
12 |
import numpy as np
|
13 |
|
14 |
# Define constants
|
15 |
-
DESCRIPTION = "[ShowUI
|
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
|
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 |
|