Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -138,13 +138,23 @@ class DataEditor:
|
|
138 |
|
139 |
def create_interface(self):
|
140 |
with gr.Blocks() as demo:
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
with gr.Column():
|
149 |
self.txturll = gr.Textbox(placeholder="link dir", interactive=True)
|
150 |
self.btn_displayy = gr.Button("Load Dataset")
|
|
|
138 |
|
139 |
def create_interface(self):
|
140 |
with gr.Blocks() as demo:
|
141 |
+
sesion_state = gr.State()
|
142 |
+
|
143 |
+
with gr.Column(scale=1, min_width=200,visible=True) as login_panal: # Login panel
|
144 |
+
gr.Markdown("## auth acess page")
|
145 |
+
token_login = gr.Textbox(label="token")
|
146 |
+
|
147 |
+
login_button = gr.Button("Login")
|
148 |
+
with gr.Column(scale=1, visible=False) as main_panel:
|
149 |
+
with gr.Row(equal_height=False):
|
150 |
+
with gr.Tabs():
|
151 |
+
with gr.TabItem("Processing Data "):
|
152 |
+
self.data_Processing()
|
153 |
+
login_button.click(self.login, inputs=[token_login], outputs=[login_panal,main_panel,sesion_state])
|
154 |
+
demo.load(self.load_demo, [sesion_state], [login_panal,main_panel])
|
155 |
+
|
156 |
+
|
157 |
+
return demo
|
158 |
with gr.Column():
|
159 |
self.txturll = gr.Textbox(placeholder="link dir", interactive=True)
|
160 |
self.btn_displayy = gr.Button("Load Dataset")
|