Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
b9f2c18
1
Parent(s):
1ae5a9f
Handle multiple username-password combinations
Browse files
app.py
CHANGED
@@ -17,8 +17,16 @@ MAX_SIZE = FS * 30
|
|
17 |
HF_TOKEN_DEMO=os.getenv("HF_TOKEN_DEMO")
|
18 |
MODEL_REPO=os.getenv("MODEL_REPO")
|
19 |
MODELNAME=os.getenv("MODELNAME")
|
20 |
-
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
hf_api = HfApi(
|
24 |
endpoint="https://huggingface.co", # Can be a Private Hub endpoint.
|
@@ -204,5 +212,5 @@ with gr.Blocks(title="Audio Fake Detector") as demo:
|
|
204 |
#btn = gr.Button("Run")
|
205 |
#btn.click(fn=update, inputs=inp, outputs=out)
|
206 |
|
207 |
-
demo.launch(auth=(
|
208 |
|
|
|
17 |
HF_TOKEN_DEMO=os.getenv("HF_TOKEN_DEMO")
|
18 |
MODEL_REPO=os.getenv("MODEL_REPO")
|
19 |
MODELNAME=os.getenv("MODELNAME")
|
20 |
+
username0=os.getenv("username0")
|
21 |
+
password0=os.getenv("password0")
|
22 |
+
username1=os.getenv("username1")
|
23 |
+
password1=os.getenv("password1")
|
24 |
+
username2=os.getenv("username2")
|
25 |
+
password2=os.getenv("password2")
|
26 |
+
username3=os.getenv("username3")
|
27 |
+
password3=os.getenv("password3")
|
28 |
+
username4=os.getenv("username4")
|
29 |
+
password4=os.getenv("password4")
|
30 |
|
31 |
hf_api = HfApi(
|
32 |
endpoint="https://huggingface.co", # Can be a Private Hub endpoint.
|
|
|
212 |
#btn = gr.Button("Run")
|
213 |
#btn.click(fn=update, inputs=inp, outputs=out)
|
214 |
|
215 |
+
demo.launch(auth=[(username0,password0),(username1,password1),(username2,password2),(username3,password3),(username4,password4)])
|
216 |
|