tsi-org commited on
Commit
fd8e4ba
·
1 Parent(s): 88f2b83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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)