Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,12 +18,6 @@ from PIL import Image
|
|
18 |
import plotly.graph_objects as go
|
19 |
import pandas as pd
|
20 |
import csv
|
21 |
-
import os
|
22 |
-
|
23 |
-
# Check if the app is running on Hugging Face Spaces
|
24 |
-
is_huggingface = "HF_SPACE" in os.environ
|
25 |
-
|
26 |
-
|
27 |
|
28 |
logged_in_user = None # Global state to store the logged-in user
|
29 |
|
@@ -224,8 +218,4 @@ with gr.Blocks(css="style.css", theme=gr.themes.Soft()) as app:
|
|
224 |
)
|
225 |
|
226 |
|
227 |
-
|
228 |
-
if is_huggingface:
|
229 |
-
app.launch(share=True) # No authentication for Hugging Face Spaces
|
230 |
-
else:
|
231 |
-
app.launch(auth=auth_users, share=True) # Use authentication locally or on private deployments
|
|
|
18 |
import plotly.graph_objects as go
|
19 |
import pandas as pd
|
20 |
import csv
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
logged_in_user = None # Global state to store the logged-in user
|
23 |
|
|
|
218 |
)
|
219 |
|
220 |
|
221 |
+
app.launch(share=True) # No authentication for Hugging Face Spaces
|
|
|
|
|
|
|
|