Spaces:
Sleeping
Sleeping
File size: 362 Bytes
cb7427c 2a0de7a |
1 2 3 4 5 6 7 8 9 10 11 |
import gradio as gr
from source.predict_sample import main_caption
iface = gr.Interface(fn=main_caption,
inputs=gr.Image(image_mode='RGB'),
outputs="text",
title="Image Caption Generator",
description="Upload an image, and the system will generate a caption.")
iface.launch()
|