Update multit2i.py
Browse files- multit2i.py +5 -0
multit2i.py
CHANGED
@@ -7,6 +7,11 @@ from huggingface_hub import InferenceClient
|
|
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
|
|
|
7 |
import os
|
8 |
|
9 |
|
10 |
+
client = InferenceClient(
|
11 |
+
provider="hf-inference",
|
12 |
+
api_key="hf_xxxxxxxxxxxxxxxxxxxxxxxx"
|
13 |
+
)
|
14 |
+
|
15 |
|
16 |
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.
|
17 |
server_timeout = 600
|