MingDoan's picture
feat: Add Image to Text
63f6e61
raw
history blame
795 Bytes
import gradio as gr
# Import Interfaces
from .rembg import rembg_interface
from .fd import fd_interface
from .chat import chat_interface
from .img2text import img2text_interface
from .vqa import vqa_interface
from .config import config_interface
def create_interface():
rembg_ui = rembg_interface()
fd_ui = fd_interface()
chat_ui = chat_interface()
img2text_ui = img2text_interface()
vqa_ui = vqa_interface()
config_ui = config_interface()
return gr.TabbedInterface(
title="GDSC AI Service Inference",
interface_list=[rembg_ui, fd_ui,
chat_ui.queue(), img2text_ui, vqa_ui, config_ui],
tab_names=[rembg_ui.title, fd_ui.title,
chat_ui.title, img2text_ui.title, vqa_ui.title, config_ui.title],
)