Spaces:
Sleeping
Sleeping
jovian
commited on
Commit
·
696f1e8
1
Parent(s):
07c5c80
login
Browse files- app.py +7 -1
- requirements.txt +1 -4
app.py
CHANGED
|
@@ -425,6 +425,12 @@ with gr.Blocks(css = css,js=js_func) as demo:
|
|
| 425 |
outputs=frequency_graph_component)
|
| 426 |
|
| 427 |
# Launch the Gradio interface
|
| 428 |
-
demo.launch(share=True,auth=(os.environ["USERNAME"], os.environ["PASSWORD"]))
|
| 429 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 430 |
|
|
|
|
| 425 |
outputs=frequency_graph_component)
|
| 426 |
|
| 427 |
# Launch the Gradio interface
|
|
|
|
| 428 |
|
| 429 |
+
username = os.getenv("USERNAME")
|
| 430 |
+
password = os.getenv("PASSWORD")
|
| 431 |
+
|
| 432 |
+
if username and password:
|
| 433 |
+
demo.launch(share=True, auth=(username, password))
|
| 434 |
+
else:
|
| 435 |
+
print("Environment variables USERNAME and PASSWORD are not set.")
|
| 436 |
|
requirements.txt
CHANGED
|
@@ -7,7 +7,4 @@ sahi==0.11.18
|
|
| 7 |
pillow
|
| 8 |
plotly==5.24.1
|
| 9 |
ultralytics==8.3.24
|
| 10 |
-
|
| 11 |
-
diffusers
|
| 12 |
-
accelerate
|
| 13 |
-
mediapipe
|
|
|
|
| 7 |
pillow
|
| 8 |
plotly==5.24.1
|
| 9 |
ultralytics==8.3.24
|
| 10 |
+
|
|
|
|
|
|
|
|
|