Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,10 +10,10 @@ from typing import Dict
|
|
| 10 |
# Initialize LangSmith Client for monitoring
|
| 11 |
client = Client(api_key="lsv2_pt_c29f0a7a770c4b729fb4427262d2272_064d0193b4")
|
| 12 |
|
| 13 |
-
# Load Hugging Face LLM model
|
| 14 |
def load_huggingface_llm():
|
| 15 |
-
# Load the model
|
| 16 |
-
return pipeline("text-generation", model="
|
| 17 |
|
| 18 |
llm = load_huggingface_llm()
|
| 19 |
|
|
|
|
| 10 |
# Initialize LangSmith Client for monitoring
|
| 11 |
client = Client(api_key="lsv2_pt_c29f0a7a770c4b729fb4427262d2272_064d0193b4")
|
| 12 |
|
| 13 |
+
# Load Hugging Face LLM model without requiring a token
|
| 14 |
def load_huggingface_llm():
|
| 15 |
+
# Load the model without authentication
|
| 16 |
+
return pipeline("text-generation", model="EleutherAI/gpt-neo-2.7B")
|
| 17 |
|
| 18 |
llm = load_huggingface_llm()
|
| 19 |
|