Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,11 @@ import yaml
|
|
4 |
import tempfile
|
5 |
import huggingface_hub
|
6 |
import subprocess
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
HF_TKN = os.environ.get("GATED_HF_TOKEN")
|
9 |
huggingface_hub.login(token=HF_TKN)
|
|
|
4 |
import tempfile
|
5 |
import huggingface_hub
|
6 |
import subprocess
|
7 |
+
import threading
|
8 |
+
|
9 |
+
def stream_output(pipe):
|
10 |
+
for line in iter(pipe.readline, ''):
|
11 |
+
print(line, end='')
|
12 |
|
13 |
HF_TKN = os.environ.get("GATED_HF_TOKEN")
|
14 |
huggingface_hub.login(token=HF_TKN)
|