Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
with gr.
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
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()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|