Image-Caption / gradio_ui.py
aryan083's picture
Upload 7 files
3bfd95f verified
raw
history blame contribute delete
322 Bytes
import gradio as gr
from predict_caption import predict_step
with gr.Blocks() as demo:
image = gr.Image(type='pil', label='Image')
label = gr.Text(label='Generated Caption')
image.upload(
predict_step,
[image],
[label]
)
if __name__ == '__main__':
demo.launch()