edit login button
Browse files
app.py
CHANGED
|
@@ -226,6 +226,12 @@ def create_demo():
|
|
| 226 |
outputs=[model_choice,model_info]
|
| 227 |
)
|
| 228 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 229 |
gr.Markdown("### Uploaded Images")
|
| 230 |
input_gallery = gr.Gallery(
|
| 231 |
label="Uploaded Image Previews", columns=3, height=150,
|
|
|
|
| 226 |
outputs=[model_choice,model_info]
|
| 227 |
)
|
| 228 |
|
| 229 |
+
login_button.login(
|
| 230 |
+
fn=check_authorization,
|
| 231 |
+
inputs=None, # The user profile is automatically passed on login
|
| 232 |
+
outputs=[model_choice, model_info]
|
| 233 |
+
)
|
| 234 |
+
|
| 235 |
gr.Markdown("### Uploaded Images")
|
| 236 |
input_gallery = gr.Gallery(
|
| 237 |
label="Uploaded Image Previews", columns=3, height=150,
|