GOKULSINGHSHAH123 commited on
Commit
b15bba2
·
verified ·
1 Parent(s): 95cd216

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -19,14 +19,11 @@ def predict():
19
  st.markdown('#### Predicted Captions:')
20
  captions.append(pred_caption)
21
 
22
- for _ in range(5):
23
  pred_caption = generate_caption('tmp.jpg', caption_model, add_noise=True)
24
 
25
  if pred_caption not in captions:
26
  captions.append(pred_caption)
27
-
28
- if len(captions)==3:
29
- return
30
 
31
  for c in captions:
32
  st.write(c)
 
19
  st.markdown('#### Predicted Captions:')
20
  captions.append(pred_caption)
21
 
22
+ for _ in range(4):
23
  pred_caption = generate_caption('tmp.jpg', caption_model, add_noise=True)
24
 
25
  if pred_caption not in captions:
26
  captions.append(pred_caption)
 
 
 
27
 
28
  for c in captions:
29
  st.write(c)