Spaces:
Runtime error
Runtime error
ManishThota
commited on
Update src/text_processor.py
Browse files- src/text_processor.py +2 -1
src/text_processor.py
CHANGED
@@ -1,11 +1,12 @@
|
|
1 |
# --- src/text_processor.py ---
|
2 |
from huggingface_hub import InferenceClient
|
3 |
from pydantic import BaseModel
|
|
|
4 |
|
5 |
# Hugging Face Hub client setup
|
6 |
client = InferenceClient(
|
7 |
"microsoft/Phi-3-mini-4k-instruct",
|
8 |
-
token =
|
9 |
)
|
10 |
|
11 |
# Pydantic class for output validation
|
|
|
1 |
# --- src/text_processor.py ---
|
2 |
from huggingface_hub import InferenceClient
|
3 |
from pydantic import BaseModel
|
4 |
+
import os
|
5 |
|
6 |
# Hugging Face Hub client setup
|
7 |
client = InferenceClient(
|
8 |
"microsoft/Phi-3-mini-4k-instruct",
|
9 |
+
token = os.environ['HUGGINGFACE_API_KEY']
|
10 |
)
|
11 |
|
12 |
# Pydantic class for output validation
|