Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -489,8 +489,7 @@ if __name__ == "__main__":
|
|
| 489 |
print("π Launching Python to C++ Code Optimizer on Hugging Face Spaces")
|
| 490 |
print("π Password protection enabled")
|
| 491 |
app.launch(
|
| 492 |
-
auth=
|
| 493 |
-
auth_message="Enter the shared password to access the app",
|
| 494 |
show_error=True
|
| 495 |
)
|
| 496 |
else:
|
|
@@ -514,8 +513,7 @@ if __name__ == "__main__":
|
|
| 514 |
app.launch(
|
| 515 |
server_name="127.0.0.1",
|
| 516 |
server_port=port,
|
| 517 |
-
auth=
|
| 518 |
-
auth_message="Enter the shared password to access the app",
|
| 519 |
show_error=True
|
| 520 |
)
|
| 521 |
|
|
|
|
| 489 |
print("π Launching Python to C++ Code Optimizer on Hugging Face Spaces")
|
| 490 |
print("π Password protection enabled")
|
| 491 |
app.launch(
|
| 492 |
+
auth=[("user", APP_PASSWORD)],
|
|
|
|
| 493 |
show_error=True
|
| 494 |
)
|
| 495 |
else:
|
|
|
|
| 513 |
app.launch(
|
| 514 |
server_name="127.0.0.1",
|
| 515 |
server_port=port,
|
| 516 |
+
auth=[("user", APP_PASSWORD)],
|
|
|
|
| 517 |
show_error=True
|
| 518 |
)
|
| 519 |
|