Spaces:
Sleeping
Sleeping
mattiashallberg
commited on
Commit
•
5767320
1
Parent(s):
5b70f41
Update app.py
Browse files
app.py
CHANGED
@@ -14,25 +14,27 @@ def environ_auth(username, password):
|
|
14 |
return True
|
15 |
elif username == os.environ.get('akiko_kinjo') and password == os.environ.get('akiko_kinjo_password'):
|
16 |
return True
|
17 |
-
elif username == os.environ.get('junichiro_kawashima') and password == os.environ.get('junichiro_kawashima_password'):
|
18 |
-
|
19 |
-
elif username == os.environ.get('tomoya_yoshida') and password == os.environ.get('tomoya_yoshida_password'):
|
20 |
-
|
21 |
-
elif username == os.environ.get('miho_breen') and password == os.environ.get('miho_breen_password'):
|
22 |
-
|
23 |
-
elif username == os.environ.get('nishida_hideaki') and password == os.environ.get('nishida_hideaki_password'):
|
24 |
-
|
25 |
elif username == os.environ.get('casey_wahl') and password == os.environ.get('casey_wahl_password'):
|
26 |
return True
|
27 |
-
elif username == os.environ.get('takeshi_kato') and password == os.environ.get('takeshi_kato_password'):
|
28 |
-
|
29 |
-
elif username == os.environ.get('leonard_ogata') and password == os.environ.get('leonard_ogata_password'):
|
30 |
-
|
31 |
-
elif username == os.environ.get('hiroyasu_ito') and password == os.environ.get('hiroyasu_ito_password'):
|
|
|
|
|
32 |
return True
|
33 |
else:
|
34 |
return False
|
35 |
|
36 |
-
demo = gr.load("attuned-ai/
|
37 |
demo.queue(max_size=20)
|
38 |
demo.launch(auth=environ_auth).launch()
|
|
|
14 |
return True
|
15 |
elif username == os.environ.get('akiko_kinjo') and password == os.environ.get('akiko_kinjo_password'):
|
16 |
return True
|
17 |
+
# elif username == os.environ.get('junichiro_kawashima') and password == os.environ.get('junichiro_kawashima_password'):
|
18 |
+
# return True
|
19 |
+
# elif username == os.environ.get('tomoya_yoshida') and password == os.environ.get('tomoya_yoshida_password'):
|
20 |
+
# return True
|
21 |
+
# elif username == os.environ.get('miho_breen') and password == os.environ.get('miho_breen_password'):
|
22 |
+
# return True
|
23 |
+
# elif username == os.environ.get('nishida_hideaki') and password == os.environ.get('nishida_hideaki_password'):
|
24 |
+
# return True
|
25 |
elif username == os.environ.get('casey_wahl') and password == os.environ.get('casey_wahl_password'):
|
26 |
return True
|
27 |
+
# elif username == os.environ.get('takeshi_kato') and password == os.environ.get('takeshi_kato_password'):
|
28 |
+
# return True
|
29 |
+
# elif username == os.environ.get('leonard_ogata') and password == os.environ.get('leonard_ogata_password'):
|
30 |
+
# return True
|
31 |
+
# elif username == os.environ.get('hiroyasu_ito') and password == os.environ.get('hiroyasu_ito_password'):
|
32 |
+
# return True
|
33 |
+
elif username == os.environ.get('nawal_behih') and password == os.environ.get('nawal_behih_password'):
|
34 |
return True
|
35 |
else:
|
36 |
return False
|
37 |
|
38 |
+
demo = gr.load("attuned-ai/TipGeneratorBot", src="spaces", hf_token=HF_TOKEN)
|
39 |
demo.queue(max_size=20)
|
40 |
demo.launch(auth=environ_auth).launch()
|