Spaces:
Runtime error
Runtime error
Update MeatValidatorAgent.py
Browse files- MeatValidatorAgent.py +12 -0
MeatValidatorAgent.py
CHANGED
|
@@ -1,4 +1,16 @@
|
|
| 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
class MEATValidatorAgent:
|
| 3 |
def __init__(self, model: str = "gpt-4o"):
|
| 4 |
self.llm = ChatOpenAI(model=model, temperature=0)
|
|
|
|
| 1 |
|
| 2 |
+
import os
|
| 3 |
+
import json
|
| 4 |
+
import pandas as pd
|
| 5 |
+
from PyPDF2 import PdfReader
|
| 6 |
+
from json_repair import repair_json
|
| 7 |
+
from typing import List, Dict, Any
|
| 8 |
+
from typing import List, Dict, Any, Optional
|
| 9 |
+
from crewai import Agent, Task, Crew, Process
|
| 10 |
+
from crewai_tools import SerperDevTool
|
| 11 |
+
from langchain_openai import ChatOpenAI, OpenAIEmbeddings
|
| 12 |
+
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
| 13 |
+
from langchain_community.vectorstores import Chroma
|
| 14 |
class MEATValidatorAgent:
|
| 15 |
def __init__(self, model: str = "gpt-4o"):
|
| 16 |
self.llm = ChatOpenAI(model=model, temperature=0)
|