ManishThota commited on
Commit
4cfac13
·
verified ·
1 Parent(s): 11ed5ed

Update src/text_processor.py

Browse files
Files changed (1) hide show
  1. 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 = api_key=os.environ['HUGGINGFACE_API_KEY']
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