ViVQA / app.py
windy2612's picture
Rename App.py to app.py
b6d9895 verified
raw
history blame contribute delete
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)