cavargas10 commited on
Commit
b4c6cd6
·
verified ·
1 Parent(s): c7abadb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -24
app.py CHANGED
@@ -1,24 +1,16 @@
1
- import gradio as gr
2
-
3
- from launch.image_generation import image_generation_ui
4
- from launch.model_generation import model_generation_ui
5
- from launch.story_generation import story_generation_ui
6
- # from launch.image_edition import image_edition_ui
7
-
8
-
9
- with gr.Blocks() as demo:
10
- with gr.Group():
11
- with gr.Tab("Generate Story"):
12
- story_generation_ui()
13
-
14
- # with gr.Tab("2D Character and Assets"):
15
- # with gr.Tab("Edit Image"):
16
- # image_edition_ui()
17
- with gr.Tab("Generate Image and Remove Background"):
18
- input_image, processed_image = image_generation_ui()
19
-
20
- with gr.Tab("3D Model"):
21
- output_model_obj, output_model_glb = model_generation_ui(
22
- processed_image)
23
-
24
- demo.launch()
 
1
+ import gradio as gr
2
+
3
+ from launch.image_generation import image_generation_ui
4
+ from launch.model_generation import model_generation_ui
5
+
6
+ with gr.Blocks() as demo:
7
+ with gr.Group():
8
+
9
+ with gr.Tab("Generate Image and Remove Background"):
10
+ input_image, processed_image = image_generation_ui()
11
+
12
+ with gr.Tab("3D Model"):
13
+ output_model_obj, output_model_glb = model_generation_ui(
14
+ processed_image)
15
+
16
+ demo.launch()