Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,10 @@ import os
|
|
5 |
from PIL import Image
|
6 |
import numpy as np
|
7 |
|
|
|
|
|
|
|
|
|
8 |
def run_scripts(target, source, use_face_enhancer):
|
9 |
if target is None or (not use_face_enhancer and source is None):
|
10 |
return None
|
@@ -43,4 +47,4 @@ iface = gr.Interface(
|
|
43 |
live=True
|
44 |
)
|
45 |
|
46 |
-
iface.launch()
|
|
|
5 |
from PIL import Image
|
6 |
import numpy as np
|
7 |
|
8 |
+
# Login function for authentication
|
9 |
+
def custom_auth(username, password):
|
10 |
+
return password == "aitutor"
|
11 |
+
|
12 |
def run_scripts(target, source, use_face_enhancer):
|
13 |
if target is None or (not use_face_enhancer and source is None):
|
14 |
return None
|
|
|
47 |
live=True
|
48 |
)
|
49 |
|
50 |
+
iface.launch(debug=True, auth=custom_auth)
|