File size: 419 Bytes
17e0b07
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import warnings
import gradio as gr
warnings.filterwarnings('ignore')

from img_cap_utils import img_cap_with_markdown
from img_gen_utils import img_gen_with_markdown

# Combine both the app
demo = gr.Blocks()
with demo:
    gr.TabbedInterface(
        [img_cap_with_markdown, img_gen_with_markdown],
        ['Image Captioning', 'Image Generation']
    )


if __name__ == "__main__":
    demo.launch()