1inkusFace commited on
Commit
c12d5e6
·
verified ·
1 Parent(s): 4f48370

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -275,7 +275,7 @@ def captioning(img):
275
  '''
276
  generated_ids = model5.generate(
277
  **inputsa,
278
- text_decoding_method == "Nucleus sampling",
279
  num_beams=1,
280
  max_length=128,
281
  min_length=64,
@@ -295,7 +295,7 @@ def captioning(img):
295
  #with torch.no_grad():
296
  generated_ids = model5.generate(
297
  **inputs,
298
- text_decoding_method == "Nucleus sampling",
299
  num_beams=1,
300
  max_length=64,
301
  #min_length=16,
@@ -315,7 +315,7 @@ def captioning(img):
315
  ).to('cuda')
316
  generated_ids = model5.generate(
317
  **inputf,
318
- text_decoding_method == "Nucleus sampling",
319
  num_beams=1,
320
  max_length=96,
321
  min_length=64,
 
275
  '''
276
  generated_ids = model5.generate(
277
  **inputsa,
278
+ text_decoding_method = "Nucleus sampling",
279
  num_beams=1,
280
  max_length=128,
281
  min_length=64,
 
295
  #with torch.no_grad():
296
  generated_ids = model5.generate(
297
  **inputs,
298
+ text_decoding_method = "Nucleus sampling",
299
  num_beams=1,
300
  max_length=64,
301
  #min_length=16,
 
315
  ).to('cuda')
316
  generated_ids = model5.generate(
317
  **inputf,
318
+ text_decoding_method = "Nucleus sampling",
319
  num_beams=1,
320
  max_length=96,
321
  min_length=64,