Spaces:
Running
Running
yizhangliu
commited on
Commit
·
93b8a3e
1
Parent(s):
81e1615
Update app.py
Browse files
app.py
CHANGED
@@ -91,21 +91,22 @@ with image_blocks as demo:
|
|
91 |
with gr.Box():
|
92 |
with gr.Row():
|
93 |
with gr.Column():
|
94 |
-
image = gr.Image(source='upload', tool='sketch', elem_id="image_upload", type="pil", label="Upload")
|
95 |
with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
|
96 |
# prompt = gr.Textbox(placeholder = 'Your prompt (what you want in place of what is erased)', show_label=False, elem_id="input-text")
|
97 |
-
btn = gr.Button("
|
98 |
margin=False,
|
99 |
rounded=(False, True, True, False),
|
100 |
full_width=False,
|
101 |
)
|
|
|
102 |
with gr.Column():
|
103 |
image_out = gr.Image(label="Output", elem_id="output-img").style(height=400)
|
104 |
with gr.Group(elem_id="share-btn-container"):
|
105 |
community_icon = gr.HTML(community_icon_html, visible=False)
|
106 |
loading_icon = gr.HTML(loading_icon_html, visible=False)
|
107 |
share_button = gr.Button("Share to community", elem_id="share-btn", visible=False)
|
108 |
-
|
109 |
|
110 |
# btn.click(fn=predict, inputs=[image, prompt], outputs=[image_out, community_icon, loading_icon, share_button])
|
111 |
btn.click(fn=predict, inputs=[image], outputs=[image_out]) #, community_icon, loading_icon, share_button])
|
|
|
91 |
with gr.Box():
|
92 |
with gr.Row():
|
93 |
with gr.Column():
|
94 |
+
image = gr.Image(source='upload', tool='sketch', elem_id="image_upload", type="pil", label="Upload") #.style(height=400)
|
95 |
with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
|
96 |
# prompt = gr.Textbox(placeholder = 'Your prompt (what you want in place of what is erased)', show_label=False, elem_id="input-text")
|
97 |
+
btn = gr.Button("Done!").style(
|
98 |
margin=False,
|
99 |
rounded=(False, True, True, False),
|
100 |
full_width=False,
|
101 |
)
|
102 |
+
'''
|
103 |
with gr.Column():
|
104 |
image_out = gr.Image(label="Output", elem_id="output-img").style(height=400)
|
105 |
with gr.Group(elem_id="share-btn-container"):
|
106 |
community_icon = gr.HTML(community_icon_html, visible=False)
|
107 |
loading_icon = gr.HTML(loading_icon_html, visible=False)
|
108 |
share_button = gr.Button("Share to community", elem_id="share-btn", visible=False)
|
109 |
+
'''
|
110 |
|
111 |
# btn.click(fn=predict, inputs=[image, prompt], outputs=[image_out, community_icon, loading_icon, share_button])
|
112 |
btn.click(fn=predict, inputs=[image], outputs=[image_out]) #, community_icon, loading_icon, share_button])
|