Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -155,7 +155,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
|
|
155 |
|
156 |
with gr.Row():
|
157 |
with gr.Column():
|
158 |
-
image_input = gr.Image(type="pil")
|
|
|
159 |
confirm_button = gr.Button("Konfirmasi")
|
160 |
restart_button = gr.Button("Restart")
|
161 |
with gr.Column():
|
@@ -167,4 +168,4 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
|
|
167 |
restart_button.click(lambda: (None, "", [], []), inputs=None, outputs=[image_input, detected_shape, explanation_output, recommendation_gallery])
|
168 |
|
169 |
if __name__ == "__main__":
|
170 |
-
iface.launch()
|
|
|
155 |
|
156 |
with gr.Row():
|
157 |
with gr.Column():
|
158 |
+
image_input = gr.Image(type="pil", file_count="single", interactive=False)
|
159 |
+
upload_button = gr.UploadButton("Unggah Gambar")
|
160 |
confirm_button = gr.Button("Konfirmasi")
|
161 |
restart_button = gr.Button("Restart")
|
162 |
with gr.Column():
|
|
|
168 |
restart_button.click(lambda: (None, "", [], []), inputs=None, outputs=[image_input, detected_shape, explanation_output, recommendation_gallery])
|
169 |
|
170 |
if __name__ == "__main__":
|
171 |
+
iface.launch()
|