File size: 308 Bytes
3dd5d3e
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
import gradio as gr
from Predict import generate_caption

interface = gr.Interface(
    fn = generate_caption,
    inputs =[gr.components.Image(), gr.components.Textbox(label = "Question")],
    outputs=[gr.components.Textbox(label = "Answer", lines=3)]
)
interface.launch(share = True, debug = True)