Spaces:
Sleeping
Sleeping
feat: add authentication
Browse filesNow 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.
- .gitignore +3 -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')))
|