Update app.py
Browse files
app.py
CHANGED
@@ -208,7 +208,7 @@ class AnyCoder:
|
|
208 |
gr.HTML('<div class="group-title">π Quick Start</div>')
|
209 |
|
210 |
example_gallery = gr.Gallery(
|
211 |
-
value=[demo["title"] for demo in DEMO_LIST[:6]],
|
212 |
label="Example Projects",
|
213 |
show_label=False,
|
214 |
elem_classes=["example-gallery"],
|
@@ -230,7 +230,7 @@ class AnyCoder:
|
|
230 |
|
231 |
with gr.Row():
|
232 |
import_btn = gr.Button("Import", variant="secondary", scale=1)
|
233 |
-
import_status = gr.HTML("", visible=False)
|
234 |
|
235 |
# Store sidebar components for event handling
|
236 |
self.sidebar_components = {
|
@@ -267,6 +267,9 @@ class AnyCoder:
|
|
267 |
inputs=[enable_images, enable_videos, enable_music],
|
268 |
outputs=[media_prompts]
|
269 |
)
|
|
|
|
|
|
|
270 |
|
271 |
def create_main_content(self, history, current_model):
|
272 |
"""Create the main content area"""
|
|
|
208 |
gr.HTML('<div class="group-title">π Quick Start</div>')
|
209 |
|
210 |
example_gallery = gr.Gallery(
|
211 |
+
value=[demo["title"] for demo in DEMO_LIST[:6]], # text only, no NoneType
|
212 |
label="Example Projects",
|
213 |
show_label=False,
|
214 |
elem_classes=["example-gallery"],
|
|
|
230 |
|
231 |
with gr.Row():
|
232 |
import_btn = gr.Button("Import", variant="secondary", scale=1)
|
233 |
+
import_status = gr.HTML("", visible=False) # fixed, no invalid scale arg
|
234 |
|
235 |
# Store sidebar components for event handling
|
236 |
self.sidebar_components = {
|
|
|
267 |
inputs=[enable_images, enable_videos, enable_music],
|
268 |
outputs=[media_prompts]
|
269 |
)
|
270 |
+
|
271 |
+
# rest of the class and main() remain unchanged
|
272 |
+
|
273 |
|
274 |
def create_main_content(self, history, current_model):
|
275 |
"""Create the main content area"""
|