ruminasval commited on
Commit
2f457aa
·
verified ·
1 Parent(s): cbc8a5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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()