tsi-org commited on
Commit
17ae24a
·
1 Parent(s): 518d9ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -24,12 +24,9 @@ def generate_voice(text, voice_name):
24
  except Exception as e:
25
  raise gr.Error(e)
26
 
27
- # Login function
28
- def login(username, password):
29
- if password == "pixio":
30
- return True
31
- else:
32
- return False
33
 
34
 
35
  badges = """
@@ -168,4 +165,4 @@ with gr.Blocks() as block:
168
  queue=True
169
  )
170
 
171
- block.queue(concurrency_count=5).launch(debug=True, login=login)
 
24
  except Exception as e:
25
  raise gr.Error(e)
26
 
27
+ # Login function for authentication
28
+ def custom_auth(username, password):
29
+ return password == "pixio"
 
 
 
30
 
31
 
32
  badges = """
 
165
  queue=True
166
  )
167
 
168
+ block.queue(concurrency_count=5).launch(debug=True, auth=custom_auth)