Spaces:
Running
Running
Update app with agent call
Browse files
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
|
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 = """
|