fffiloni commited on
Commit
ee88ea4
1 Parent(s): de0d30c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
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)