Update app.py
Browse files
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,
|
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":
|