Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,15 +45,9 @@ class BasicAgent:
|
|
| 45 |
describe_image,
|
| 46 |
read_file,
|
| 47 |
transcribe_audio
|
| 48 |
-
]
|
| 49 |
-
self.llm = AzureChatOpenAI(
|
| 50 |
-
model_name="gpt-4o",
|
| 51 |
-
api_key=self.get_access_token(),
|
| 52 |
-
azure_endpoint="https://cog-sandbox-dev-eastus2-001.openai.azure.com/",
|
| 53 |
-
api_version="2024-08-01-preview"
|
| 54 |
-
)
|
| 55 |
-
self.llm_with_tools = self.llm.bind_tools(self.tools)
|
| 56 |
self.google_llm = ChatGoogleGenerativeAI(model='gemini-2.0-flash-lite')
|
|
|
|
| 57 |
self.graph = self.create_graph()
|
| 58 |
|
| 59 |
def __call__(self, task_id: str, question: str, file_name: str = None, local_file_name: str = None) -> str:
|
|
|
|
| 45 |
describe_image,
|
| 46 |
read_file,
|
| 47 |
transcribe_audio
|
| 48 |
+
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
self.google_llm = ChatGoogleGenerativeAI(model='gemini-2.0-flash-lite')
|
| 50 |
+
self.llm_with_tools = self.google_llm.bind_tools(self.tools)
|
| 51 |
self.graph = self.create_graph()
|
| 52 |
|
| 53 |
def __call__(self, task_id: str, question: str, file_name: str = None, local_file_name: str = None) -> str:
|