cmpatino commited on
Commit
aa32697
·
1 Parent(s): e7daea6

Update app with agent call

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -1,11 +1,18 @@
1
  import gradio as gr
2
  from dotenv import load_dotenv
3
 
 
 
4
  load_dotenv()
5
 
 
 
 
 
 
6
 
7
  def answer(query):
8
- return f"Here's the answer to your question: {query}"
9
 
10
 
11
  description = """
 
1
  import gradio as gr
2
  from dotenv import load_dotenv
3
 
4
+ from cv_assistant.agent import Agent
5
+
6
  load_dotenv()
7
 
8
+ agent = Agent(
9
+ faiss_index_path="./content_assets/docs.index",
10
+ faise_store_path="./content_assets/faiss_store.pkl",
11
+ )
12
+
13
 
14
  def answer(query):
15
+ return agent.answer(query=query)
16
 
17
 
18
  description = """