Spaces:
Sleeping
Sleeping
Commit
·
1513d5d
1
Parent(s):
0c4664c
Fix Gradio examples causing TypeError on startup
Browse filesComment out gr.Examples section that referenced non-existent image files,
which was causing "argument of type 'bool' is not iterable" error during
JSON schema processing.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
app.py
CHANGED
|
@@ -250,17 +250,17 @@ def create_gradio_app():
|
|
| 250 |
visible=True
|
| 251 |
)
|
| 252 |
|
| 253 |
-
#
|
| 254 |
-
gr.Markdown("### Example Screenshots")
|
| 255 |
-
gr.Examples(
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
)
|
| 264 |
|
| 265 |
# Connect the extraction function
|
| 266 |
extract_btn.click(
|
|
|
|
| 250 |
visible=True
|
| 251 |
)
|
| 252 |
|
| 253 |
+
# Examples section commented out until example images are available
|
| 254 |
+
# gr.Markdown("### Example Screenshots")
|
| 255 |
+
# gr.Examples(
|
| 256 |
+
# examples=[
|
| 257 |
+
# ["examples/dashboard.png", "CSS Variables"],
|
| 258 |
+
# ["examples/landing_page.png", "Tailwind Config"],
|
| 259 |
+
# ["examples/mobile_app.png", "JSON Tokens"]
|
| 260 |
+
# ],
|
| 261 |
+
# inputs=[input_image, output_format],
|
| 262 |
+
# cache_examples=False
|
| 263 |
+
# )
|
| 264 |
|
| 265 |
# Connect the extraction function
|
| 266 |
extract_btn.click(
|