SergeyO7 commited on
Commit
2147a47
·
verified ·
1 Parent(s): c70637f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -6,6 +6,8 @@ from langchain_huggingface import HuggingFaceEmbeddings
6
  from langchain_community.vectorstores import FAISS
7
  from langchain_community.llms import HuggingFaceHub
8
  from langchain.prompts import ChatPromptTemplate
 
 
9
  from dotenv import load_dotenv
10
  import os
11
  import numpy as np
@@ -20,6 +22,7 @@ from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExport
20
  from opentelemetry.sdk.trace.export import SimpleSpanProcessor
21
 
22
  # Load environment variables
 
23
  load_dotenv()
24
 
25
  # Add the alias before instrumentation
 
6
  from langchain_community.vectorstores import FAISS
7
  from langchain_community.llms import HuggingFaceHub
8
  from langchain.prompts import ChatPromptTemplate
9
+ from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel, load_tool, tool
10
+ import smolagents # Added for aliasing
11
  from dotenv import load_dotenv
12
  import os
13
  import numpy as np
 
22
  from opentelemetry.sdk.trace.export import SimpleSpanProcessor
23
 
24
  # Load environment variables
25
+
26
  load_dotenv()
27
 
28
  # Add the alias before instrumentation