kenleeyx commited on
Commit
7e3947d
·
1 Parent(s): 553817d

feat: add authentication

Browse files

Now enabled authentication by anyone with a password to be defined in
the environment variables on HF. This enables going public with the app
rather than restricting it to HF organisation members only.

Files changed (2) hide show
  1. .gitignore +3 -2
  2. app.py +1 -1
.gitignore CHANGED
@@ -1,3 +1,4 @@
1
- venv
2
  .env
3
- output.xlsx
 
 
1
+ venv/
2
  .env
3
+ output.xlsx
4
+ .gradio/
app.py CHANGED
@@ -122,4 +122,4 @@ demo = gr.Interface(
122
  description=INSTRUCTIONS
123
  )
124
 
125
- demo.launch()
 
122
  description=INSTRUCTIONS
123
  )
124
 
125
+ demo.launch(share=True, auth=(os.getenv('APP_USERNAME'), os.getenv('APP_PASSWORD')))