Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
-
import os, torchvision, transformers, subprocess
|
2 |
from functools import partial
|
3 |
import gradio as gr
|
4 |
|
5 |
from inference import LiveInfer
|
6 |
logger = transformers.logging.get_logger('liveinfer')
|
7 |
|
|
|
|
|
8 |
# python -m demo.app --resume_from_checkpoint ...
|
9 |
|
10 |
liveinfer = LiveInfer()
|
|
|
1 |
+
import os, torchvision, transformers, subprocess, huggingface_hub
|
2 |
from functools import partial
|
3 |
import gradio as gr
|
4 |
|
5 |
from inference import LiveInfer
|
6 |
logger = transformers.logging.get_logger('liveinfer')
|
7 |
|
8 |
+
huggingface_hub.login()
|
9 |
+
|
10 |
# python -m demo.app --resume_from_checkpoint ...
|
11 |
|
12 |
liveinfer = LiveInfer()
|