fffiloni commited on
Commit
743b8dc
β€’
1 Parent(s): 17ec562

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def input_changes(input_img):
15
  if input_img == None:
16
  return manual_cap.update(value="",placeholder=ph_message), caption_output.update(value=None), sound_output.update(value=None)
17
  else:
18
- cap = caption(input_img, "Beam search", 1.2, 0.5, 5, 20, fn_index=0)
19
  print("CoCa caption: '" + cap + "' β€’ ")
20
  ph_update = "CoCa caption: '" + cap + "' β€’ "
21
 
 
15
  if input_img == None:
16
  return manual_cap.update(value="",placeholder=ph_message), caption_output.update(value=None), sound_output.update(value=None)
17
  else:
18
+ cap = caption(input_img, "Nucleus sampling", 1.2, 0.5, 5, 20, fn_index=0)
19
  print("CoCa caption: '" + cap + "' β€’ ")
20
  ph_update = "CoCa caption: '" + cap + "' β€’ "
21