Update app.py
Browse files
app.py
CHANGED
@@ -16,5 +16,7 @@ def launch(input):
|
|
16 |
out = model.generate(**inputs)
|
17 |
return processor.decode(out[0], skip_special_tokens=True)
|
18 |
|
19 |
-
|
|
|
|
|
20 |
iface.launch()
|
|
|
16 |
out = model.generate(**inputs)
|
17 |
return processor.decode(out[0], skip_special_tokens=True)
|
18 |
|
19 |
+
description = "Simple BLIP test app for image captioning."
|
20 |
+
|
21 |
+
iface = gr.Interface(launch, description=description, inputs="image", outputs="text")
|
22 |
iface.launch()
|