Spaces:
Runtime error
Runtime error
Aguilar Elizondo commited on
Commit ·
e43f3cc
1
Parent(s): e902d68
Fix syntax error - remove duplicate code
Browse files
app.py
CHANGED
|
@@ -398,24 +398,3 @@ if __name__ == "__main__":
|
|
| 398 |
else:
|
| 399 |
# Local development
|
| 400 |
demo.launch(share=True)
|
| 401 |
-
- Lower strength = more faithful to input
|
| 402 |
-
- Higher strength = more creative output
|
| 403 |
-
- Processing takes 2-5 minutes on CPU
|
| 404 |
-
""",
|
| 405 |
-
examples=None
|
| 406 |
-
)
|
| 407 |
-
|
| 408 |
-
if __name__ == "__main__":
|
| 409 |
-
# Check if running on HF Spaces
|
| 410 |
-
is_spaces = os.getenv("SPACE_ID") is not None
|
| 411 |
-
|
| 412 |
-
if is_spaces:
|
| 413 |
-
# HF Spaces specific configuration
|
| 414 |
-
iface.launch(
|
| 415 |
-
server_name="0.0.0.0",
|
| 416 |
-
server_port=7860,
|
| 417 |
-
share=False
|
| 418 |
-
)
|
| 419 |
-
else:
|
| 420 |
-
# Local development
|
| 421 |
-
iface.launch(share=True)
|
|
|
|
| 398 |
else:
|
| 399 |
# Local development
|
| 400 |
demo.launch(share=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|