Spaces:
Sleeping
Sleeping
Commit ·
0c5d4e2
1
Parent(s): 002a722
ssr mode = False
Browse files- app.py +1 -13
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -198,16 +198,4 @@ def auth_function(username, password):
|
|
| 198 |
return username in valid_users and valid_users[username] == password
|
| 199 |
|
| 200 |
|
| 201 |
-
|
| 202 |
-
# We're running on HF Spaces
|
| 203 |
-
iface.launch(
|
| 204 |
-
auth=auth_function, server_name="0.0.0.0", server_port=7860, share=True
|
| 205 |
-
)
|
| 206 |
-
else:
|
| 207 |
-
# We're running locally
|
| 208 |
-
iface.launch(
|
| 209 |
-
debug=True,
|
| 210 |
-
auth=[("admin", "password123"), ("user1", "pass456")],
|
| 211 |
-
server_name="127.0.0.1",
|
| 212 |
-
share=True,
|
| 213 |
-
)
|
|
|
|
| 198 |
return username in valid_users and valid_users[username] == password
|
| 199 |
|
| 200 |
|
| 201 |
+
iface.launch(auth=auth_function, share=True, ssr_mode=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
gradio==
|
| 2 |
openai==1.55.3
|
| 3 |
pillow==10.4.0
|
| 4 |
python-dotenv
|
|
|
|
| 1 |
+
gradio==5.9.1
|
| 2 |
openai==1.55.3
|
| 3 |
pillow==10.4.0
|
| 4 |
python-dotenv
|