Spaces:
Running
Running
Fix server detection
Browse files- autenticacion.py +1 -1
autenticacion.py
CHANGED
@@ -20,7 +20,7 @@ def local_check():
|
|
20 |
#r-moibe-nowme
|
21 |
print("Hostname: ", hostname)
|
22 |
#Estoy usando el nombre de la app para identificar que estoy corriendola en HF.
|
23 |
-
if "-
|
24 |
print("Ejecutando api en el servidor.")
|
25 |
return False
|
26 |
else:
|
|
|
20 |
#r-moibe-nowme
|
21 |
print("Hostname: ", hostname)
|
22 |
#Estoy usando el nombre de la app para identificar que estoy corriendola en HF.
|
23 |
+
if "r-moibe" in hostname:
|
24 |
print("Ejecutando api en el servidor.")
|
25 |
return False
|
26 |
else:
|