Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -92,9 +92,14 @@ def process_video_interface():
|
|
92 |
description="Select a video file from 'videos' folder, add text, and process.",
|
93 |
)
|
94 |
|
|
|
|
|
|
|
|
|
|
|
95 |
demo = gr.Interface(
|
96 |
-
fn=
|
97 |
-
interfaces=[
|
98 |
title="YTSHorts Maker",
|
99 |
description="Powered by GROQ, MoviePy, and other tools.",
|
100 |
theme="soft",
|
|
|
92 |
description="Select a video file from 'videos' folder, add text, and process.",
|
93 |
)
|
94 |
|
95 |
+
# Initialize the interfaces separately
|
96 |
+
chat = chat_interface()
|
97 |
+
video_processor = process_video_interface()
|
98 |
+
|
99 |
+
# Launch the demo interface with both interfaces
|
100 |
demo = gr.Interface(
|
101 |
+
fn=None, # No main function needed for multi-interface setup
|
102 |
+
interfaces=[chat, video_processor],
|
103 |
title="YTSHorts Maker",
|
104 |
description="Powered by GROQ, MoviePy, and other tools.",
|
105 |
theme="soft",
|