Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,7 @@ from nltk.corpus import stopwords
|
|
9 |
from nltk.tokenize import word_tokenize
|
10 |
import nltk
|
11 |
from typing import List, Dict
|
|
|
12 |
|
13 |
# Variable global para almacenar el historial de la conversación
|
14 |
conversation_history: List[Dict[str, str]] = []
|
@@ -90,6 +91,7 @@ model = HfApiModel(
|
|
90 |
temperature=0.5,
|
91 |
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
|
92 |
custom_role_conversions=None,
|
|
|
93 |
)
|
94 |
|
95 |
agent = CodeAgent(
|
|
|
9 |
from nltk.tokenize import word_tokenize
|
10 |
import nltk
|
11 |
from typing import List, Dict
|
12 |
+
import os
|
13 |
|
14 |
# Variable global para almacenar el historial de la conversación
|
15 |
conversation_history: List[Dict[str, str]] = []
|
|
|
91 |
temperature=0.5,
|
92 |
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
|
93 |
custom_role_conversions=None,
|
94 |
+
token=os.getenv('hf_token'),
|
95 |
)
|
96 |
|
97 |
agent = CodeAgent(
|