Spaces:
Sleeping
Sleeping
ASG Models
commited on
Commit
•
e3912fc
1
Parent(s):
bdbc08d
Update app.py
Browse files
app.py
CHANGED
@@ -251,7 +251,7 @@ class DataViewerApp:
|
|
251 |
return self.get_page_data(self.current_page)
|
252 |
def login(self, token):
|
253 |
# Your actual login logic here (e.g., database check)
|
254 |
-
if token == "
|
255 |
return gr.update(visible=False),gr.update(visible=True),True
|
256 |
else:
|
257 |
return gr.update(visible=True), gr.update(visible=False),None
|
@@ -274,7 +274,7 @@ class DataViewerApp:
|
|
274 |
font-weight: bold;
|
275 |
}
|
276 |
""") as demo:
|
277 |
-
sesion_state = gr.State(
|
278 |
|
279 |
with gr.Column(scale=1, min_width=200,visible=True) as login_panal: # Login panel
|
280 |
gr.Markdown("## auth acess page")
|
|
|
251 |
return self.get_page_data(self.current_page)
|
252 |
def login(self, token):
|
253 |
# Your actual login logic here (e.g., database check)
|
254 |
+
if token == os.environ.get("token_login") :
|
255 |
return gr.update(visible=False),gr.update(visible=True),True
|
256 |
else:
|
257 |
return gr.update(visible=True), gr.update(visible=False),None
|
|
|
274 |
font-weight: bold;
|
275 |
}
|
276 |
""") as demo:
|
277 |
+
sesion_state = gr.State()
|
278 |
|
279 |
with gr.Column(scale=1, min_width=200,visible=True) as login_panal: # Login panel
|
280 |
gr.Markdown("## auth acess page")
|