Spaces:
Runtime error
Runtime error
Commit
·
547c254
1
Parent(s):
af2abe4
use secret password
Browse files
app.py
CHANGED
@@ -278,6 +278,7 @@ import multiprocessing
|
|
278 |
import os
|
279 |
|
280 |
HF_TOKEN = os.getenv("HUGGING_FACE_HUB_TOKEN")
|
|
|
281 |
import tqdm
|
282 |
import whoosh.index as whoosh_index
|
283 |
from whoosh.analysis import StemmingAnalyzer
|
@@ -715,4 +716,4 @@ demo = gr.Interface(
|
|
715 |
)
|
716 |
|
717 |
if __name__ == "__main__":
|
718 |
-
demo.launch(auth=("user",
|
|
|
278 |
import os
|
279 |
|
280 |
HF_TOKEN = os.getenv("HUGGING_FACE_HUB_TOKEN")
|
281 |
+
PASSWORD = os.getenv("PASSWORD")
|
282 |
import tqdm
|
283 |
import whoosh.index as whoosh_index
|
284 |
from whoosh.analysis import StemmingAnalyzer
|
|
|
716 |
)
|
717 |
|
718 |
if __name__ == "__main__":
|
719 |
+
demo.launch(auth=("user", PASSWORD))
|