ViVQA / App.py
windy2612's picture
Upload 6 files
3dd5d3e verified
raw
history blame
No virus
308 Bytes
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)