patrickvonplaten commited on
Commit
d2b128f
1 Parent(s): e0d8a5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -296,7 +296,7 @@ with gr.Blocks() as demo:
296
  gr.Markdown(NOTE)
297
 
298
  with gr.Column(visible=False):
299
- selected_image = gr.Number(label="Selected index", value=-1, precision=0)
300
 
301
  with gr.Column(visible=False) as gallery_view:
302
  with gr.Row():
@@ -341,7 +341,7 @@ with gr.Blocks() as demo:
341
 
342
  def integerize(x1, x2, x3, x4):
343
  number = f"{int(x1)}{int(x2)}{int(x3)}{int(x4)}"
344
- return int(number)
345
 
346
  submit_button.click(
347
  fn=integerize,
 
296
  gr.Markdown(NOTE)
297
 
298
  with gr.Column(visible=False):
299
+ selected_image = gr.Textbox(label="Selected indexes")
300
 
301
  with gr.Column(visible=False) as gallery_view:
302
  with gr.Row():
 
341
 
342
  def integerize(x1, x2, x3, x4):
343
  number = f"{int(x1)}{int(x2)}{int(x3)}{int(x4)}"
344
+ return number
345
 
346
  submit_button.click(
347
  fn=integerize,