Spaces:
Sleeping
Sleeping
| 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) |