Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import gradio as gr
|
|
| 4 |
import requests
|
| 5 |
import pandas as pd
|
| 6 |
from langchain_core.messages import HumanMessage
|
| 7 |
-
from veryfinal import
|
| 8 |
|
| 9 |
|
| 10 |
|
|
@@ -25,7 +25,7 @@ class BasicAgent:
|
|
| 25 |
print(f"Agent received question: {question}")
|
| 26 |
|
| 27 |
# Get the full response from your agent
|
| 28 |
-
full_response =
|
| 29 |
|
| 30 |
# Extract just the answer part after "FINAL ANSWER: "
|
| 31 |
if "FINAL ANSWER: " in full_response:
|
|
|
|
| 4 |
import requests
|
| 5 |
import pandas as pd
|
| 6 |
from langchain_core.messages import HumanMessage
|
| 7 |
+
from veryfinal import run_query
|
| 8 |
|
| 9 |
|
| 10 |
|
|
|
|
| 25 |
print(f"Agent received question: {question}")
|
| 26 |
|
| 27 |
# Get the full response from your agent
|
| 28 |
+
full_response = run_query(question)
|
| 29 |
|
| 30 |
# Extract just the answer part after "FINAL ANSWER: "
|
| 31 |
if "FINAL ANSWER: " in full_response:
|