Update app.py
Browse files
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
|
29 |
-
|
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,
|
|
|
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)
|