Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ huggingface_token = os.getenv("HUGGINGFACE_TOKEN")
|
|
| 13 |
login(token=huggingface_token) # Authenticate with Hugging Face
|
| 14 |
|
| 15 |
# Hugging Face model setup
|
| 16 |
-
pipe = pipeline("text-generation", model="mistralai/Mistral-7B-v0.1")
|
| 17 |
model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-v0.1")
|
| 18 |
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-v0.1")
|
| 19 |
|
|
|
|
| 13 |
login(token=huggingface_token) # Authenticate with Hugging Face
|
| 14 |
|
| 15 |
# Hugging Face model setup
|
| 16 |
+
pipe = pipeline("text-generation", model="mistralai/Mistral-7B-v0.1") # Load model directly
|
| 17 |
model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-v0.1")
|
| 18 |
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-v0.1")
|
| 19 |
|