MrRokot commited on
Commit
232d360
·
verified ·
1 Parent(s): e6c085b

Update multit2i.py

Browse files
Files changed (1) hide show
  1. multit2i.py +2 -1
multit2i.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import gradio as gr
2
  import asyncio
3
  from threading import RLock
@@ -6,7 +7,7 @@ from huggingface_hub import InferenceClient
6
  import os
7
 
8
 
9
- HF_TOKEN = "hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
10
  HF_TOKEN = os.environ.get("HF_TOKEN") if os.environ.get("HF_TOKEN") else None # If private or gated models aren't used, ENV setting is unnecessary.
11
  server_timeout = 600
12
  inference_timeout = 300
 
1
+ import huggingface_hub
2
  import gradio as gr
3
  import asyncio
4
  from threading import RLock
 
7
  import os
8
 
9
 
10
+
11
  HF_TOKEN = os.environ.get("HF_TOKEN") if os.environ.get("HF_TOKEN") else None # If private or gated models aren't used, ENV setting is unnecessary.
12
  server_timeout = 600
13
  inference_timeout = 300