Jyothirmai commited on
Commit
a4fcc26
·
verified ·
1 Parent(s): 4b601b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -61,7 +61,7 @@ with gr.Blocks() as demo:
61
 
62
  caption = gr.Textbox(label="Generated Caption")
63
 
64
- def predict(img, model_name):
65
  if model_name == "CLIP-GPT2":
66
  return generate_caption_clipgpt(img, max_tokens, temperature)
67
  elif model_name == "ViT-GPT2":
 
61
 
62
  caption = gr.Textbox(label="Generated Caption")
63
 
64
+ def predict(img, model_name, max_tokens, temperature):
65
  if model_name == "CLIP-GPT2":
66
  return generate_caption_clipgpt(img, max_tokens, temperature)
67
  elif model_name == "ViT-GPT2":