File size: 432 Bytes
ad17f03
1240683
ad17f03
 
 
 
 
18c8013
d6287db
ad17f03
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)