chenjoya commited on
Commit
dce0ef6
1 Parent(s): c787ef7

Update app.py

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