Spaces:
Running
Running
File size: 322 Bytes
3bfd95f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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() |