Spaces:
Paused
Paused
Abdulrahman1989
commited on
Commit
·
724d8ef
1
Parent(s):
60367c0
fix the frontend
Browse files
app.py
CHANGED
@@ -51,17 +51,13 @@ class GradioApp:
|
|
51 |
return initial_image, video_path
|
52 |
|
53 |
def launch(self):
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
gr.
|
59 |
-
|
60 |
-
|
61 |
-
title="SDXL to ControlNet to 3D Pipeline",
|
62 |
-
description="Generate an image using SDXL, refine it with ControlNet, and generate a 3D video output."
|
63 |
-
)
|
64 |
-
interface.launch(share=True) # Added `share=True` for public link
|
65 |
|
66 |
if __name__ == "__main__":
|
67 |
app = GradioApp()
|
|
|
51 |
return initial_image, video_path
|
52 |
|
53 |
def launch(self):
|
54 |
+
with gr.Blocks() as interface:
|
55 |
+
gr.Textbox(label="Input Prompt", elem_id="input_textbox")
|
56 |
+
with gr.Row():
|
57 |
+
gr.Image(label="Generated Image", elem_id="generated_image")
|
58 |
+
gr.Video(label="3D Model Video", elem_id="model_video")
|
59 |
+
interface.launch(share=True)
|
60 |
+
|
|
|
|
|
|
|
|
|
61 |
|
62 |
if __name__ == "__main__":
|
63 |
app = GradioApp()
|