Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -21,7 +21,7 @@ from langchain import LLMChain, PromptTemplate
|
|
| 21 |
def get_gpt_and_answer(question):
|
| 22 |
# إنشاء LLM باستخدام endpoint من Hugging Face
|
| 23 |
llm = HuggingFaceEndpoint(
|
| 24 |
-
repo_id="openai/gpt-oss-
|
| 25 |
task="text-generation",
|
| 26 |
|
| 27 |
huggingfacehub_api_token=os.environ["HUGGINGFACEHUB_API_TOKEN"],
|
|
|
|
| 21 |
def get_gpt_and_answer(question):
|
| 22 |
# إنشاء LLM باستخدام endpoint من Hugging Face
|
| 23 |
llm = HuggingFaceEndpoint(
|
| 24 |
+
repo_id="openai/gpt-oss-20b", # أو أي نموذج موجود في HF
|
| 25 |
task="text-generation",
|
| 26 |
|
| 27 |
huggingfacehub_api_token=os.environ["HUGGINGFACEHUB_API_TOKEN"],
|