Describe_things / app.py
ShynBui's picture
Update app.py
d6287db verified
raw
history blame
432 Bytes
import gradio as gr
from utils import answer
gradio_app = gr.Interface(
answer,
inputs= [gr.Dropdown(
["Describe things", "OCR"], label="Chọn nhiệm vụ mong muốn", info="Nó sẽ cho ra kết quả tốt hơn"), gr.Image(label="Input Image", sources=['upload', 'webcam'], type="pil")],
outputs= gr.Text(),
title="Describe things",
)
if __name__ == '__main__':
gradio_app.launch(share=True)