Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,6 @@ body { background-color: #f0f2f5; }
|
|
43 |
.gradio-container { font-family: 'Segoe UI', sans-serif; }
|
44 |
h1, h2, h3, h4 { color: #283E51; }
|
45 |
button { border-radius: 6px; }
|
46 |
-
.accordion { background-color: #ffffff; border: 1px solid #ddd; border-radius: 6px; padding: 10px; }
|
47 |
"""
|
48 |
|
49 |
@spaces.GPU
|
@@ -146,17 +145,15 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as demo:
|
|
146 |
with gr.Column(scale=2):
|
147 |
with gr.Tabs():
|
148 |
with gr.Tab("Output Image"):
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
)
|
153 |
with gr.Tab("Parsed Text"):
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
)
|
160 |
|
161 |
# ๋ฒํผ ํด๋ฆญ ์ ํ๋ก์ธ์ค ์คํ (๋ก๋ฉ ์คํผ๋ ์ ์ฉ)
|
162 |
submit_button_component.click(
|
|
|
43 |
.gradio-container { font-family: 'Segoe UI', sans-serif; }
|
44 |
h1, h2, h3, h4 { color: #283E51; }
|
45 |
button { border-radius: 6px; }
|
|
|
46 |
"""
|
47 |
|
48 |
@spaces.GPU
|
|
|
145 |
with gr.Column(scale=2):
|
146 |
with gr.Tabs():
|
147 |
with gr.Tab("Output Image"):
|
148 |
+
image_output_component = gr.Image(
|
149 |
+
type='pil', label='Processed Image'
|
150 |
+
)
|
|
|
151 |
with gr.Tab("Parsed Text"):
|
152 |
+
text_output_component = gr.Textbox(
|
153 |
+
label='Parsed Screen Elements',
|
154 |
+
placeholder='The structured elements will appear here.',
|
155 |
+
lines=10
|
156 |
+
)
|
|
|
157 |
|
158 |
# ๋ฒํผ ํด๋ฆญ ์ ํ๋ก์ธ์ค ์คํ (๋ก๋ฉ ์คํผ๋ ์ ์ฉ)
|
159 |
submit_button_component.click(
|