Spaces:
Running
on
Zero
Running
on
Zero
Alexander Bagus
commited on
Commit
·
3124e5a
1
Parent(s):
edfb278
22
Browse files
app.py
CHANGED
|
@@ -182,13 +182,13 @@ css = """
|
|
| 182 |
|
| 183 |
with open('examples/0data.json', 'r') as file: examples = json.load(file)
|
| 184 |
|
| 185 |
-
with gr.Blocks(
|
| 186 |
with gr.Column(elem_id="col-container"):
|
| 187 |
with gr.Column():
|
| 188 |
gr.HTML(read_file("static/header.html"))
|
| 189 |
with gr.Row():
|
| 190 |
with gr.Column():
|
| 191 |
-
mask_image = gr.
|
| 192 |
height=290,
|
| 193 |
sources=['upload', 'clipboard'],
|
| 194 |
image_mode='RGB',
|
|
@@ -301,4 +301,4 @@ with gr.Blocks(css=css) as demo:
|
|
| 301 |
)
|
| 302 |
|
| 303 |
if __name__ == "__main__":
|
| 304 |
-
demo.launch(mcp_server=True)
|
|
|
|
| 182 |
|
| 183 |
with open('examples/0data.json', 'r') as file: examples = json.load(file)
|
| 184 |
|
| 185 |
+
with gr.Blocks() as demo:
|
| 186 |
with gr.Column(elem_id="col-container"):
|
| 187 |
with gr.Column():
|
| 188 |
gr.HTML(read_file("static/header.html"))
|
| 189 |
with gr.Row():
|
| 190 |
with gr.Column():
|
| 191 |
+
mask_image = gr.ImageEditor(
|
| 192 |
height=290,
|
| 193 |
sources=['upload', 'clipboard'],
|
| 194 |
image_mode='RGB',
|
|
|
|
| 301 |
)
|
| 302 |
|
| 303 |
if __name__ == "__main__":
|
| 304 |
+
demo.launch(mcp_server=True, css=css)
|