Update src/ui/interface.py
Browse files- src/ui/interface.py +7 -5
src/ui/interface.py
CHANGED
|
@@ -268,18 +268,20 @@ class Veo3Interface:
|
|
| 268 |
|
| 269 |
try:
|
| 270 |
self.demo.launch(
|
| 271 |
-
share=
|
| 272 |
-
server_name=
|
| 273 |
-
server_port=
|
| 274 |
)
|
| 275 |
except Exception as e:
|
| 276 |
print(f"❌ Launch failed: {e}")
|
| 277 |
print("🔄 Trying to restart with default configuration...")
|
| 278 |
try:
|
| 279 |
self.demo.launch(
|
| 280 |
-
share=
|
| 281 |
server_name="0.0.0.0",
|
| 282 |
-
server_port=
|
|
|
|
|
|
|
| 283 |
)
|
| 284 |
except Exception as e2:
|
| 285 |
print(f"❌ Restart also failed: {e2}")
|
|
|
|
| 268 |
|
| 269 |
try:
|
| 270 |
self.demo.launch(
|
| 271 |
+
share=share,
|
| 272 |
+
server_name=server_name,
|
| 273 |
+
server_port=server_port,
|
| 274 |
)
|
| 275 |
except Exception as e:
|
| 276 |
print(f"❌ Launch failed: {e}")
|
| 277 |
print("🔄 Trying to restart with default configuration...")
|
| 278 |
try:
|
| 279 |
self.demo.launch(
|
| 280 |
+
share=False,
|
| 281 |
server_name="0.0.0.0",
|
| 282 |
+
server_port=7860,
|
| 283 |
+
show_error=True,
|
| 284 |
+
quiet=False
|
| 285 |
)
|
| 286 |
except Exception as e2:
|
| 287 |
print(f"❌ Restart also failed: {e2}")
|