Update app.py
Browse files
app.py
CHANGED
|
@@ -32,12 +32,12 @@ class BasicAgent:
|
|
| 32 |
# huggingfacehub_api_token=os.environ.get("HUGGINGFACEHUB_API_TOKEN"),
|
| 33 |
# )
|
| 34 |
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
openai_api_key=os.environ.get("OPENAI_API_KEY"), # Secure API Key
|
| 39 |
-
verbose=True
|
| 40 |
)
|
|
|
|
|
|
|
| 41 |
|
| 42 |
# Set up tools
|
| 43 |
search_tool = DuckDuckGoSearchRun()
|
|
|
|
| 32 |
# huggingfacehub_api_token=os.environ.get("HUGGINGFACEHUB_API_TOKEN"),
|
| 33 |
# )
|
| 34 |
|
| 35 |
+
llm = HuggingFaceEndpoint(
|
| 36 |
+
repo_id="Qwen/Qwen2.5-Coder-32B-Instruct",
|
| 37 |
+
huggingfacehub_api_token=HUGGINGFACEHUB_API_TOKEN,
|
|
|
|
|
|
|
| 38 |
)
|
| 39 |
+
|
| 40 |
+
chat = ChatHuggingFace(llm=llm, verbose=True)
|
| 41 |
|
| 42 |
# Set up tools
|
| 43 |
search_tool = DuckDuckGoSearchRun()
|