Update app.py
Browse files
app.py
CHANGED
|
@@ -7,5 +7,5 @@ captioner = pipeline(model=model_id)
|
|
| 7 |
def launch(input):
|
| 8 |
return captioner(input)[0]["generated_text"]
|
| 9 |
|
| 10 |
-
iface = gr.Interface(fn=launch, inputs="pil", outputs="text")
|
| 11 |
iface.launch()
|
|
|
|
| 7 |
def launch(input):
|
| 8 |
return captioner(input)[0]["generated_text"]
|
| 9 |
|
| 10 |
+
iface = gr.Interface(fn=launch, inputs=gr.Image(type="pil"), outputs="text")
|
| 11 |
iface.launch()
|