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