Robinhood135 commited on
Commit
b96f5ef
·
verified ·
1 Parent(s): 415506c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -34,7 +34,7 @@ BEST_STRATEGY_PARAMS = {
34
  "num_beams": 4,
35
  "do_sample": False,
36
  "repetition_penalty": 1.2,
37
- "max_new_tokens": 150,
38
  "min_new_tokens": 10,
39
  }
40
 
@@ -271,7 +271,8 @@ if __name__ == "__main__":
271
  description="Upload a chest X-ray image to generate a radiology finding in English and automatically translate it to Hindi.",
272
  # allow_flagging="never",
273
  examples=examples,
274
- cache_examples=False
 
275
  )
276
 
277
  print("\nStarting Gradio interface...")
 
34
  "num_beams": 4,
35
  "do_sample": False,
36
  "repetition_penalty": 1.2,
37
+ "max_new_tokens": 100,
38
  "min_new_tokens": 10,
39
  }
40
 
 
271
  description="Upload a chest X-ray image to generate a radiology finding in English and automatically translate it to Hindi.",
272
  # allow_flagging="never",
273
  examples=examples,
274
+ # cache_examples=False
275
+ cache_examples=True
276
  )
277
 
278
  print("\nStarting Gradio interface...")