error async
Browse files
agents.py
CHANGED
|
@@ -2,7 +2,7 @@ import asyncio
|
|
| 2 |
from llama_index.core.agent.workflow import AgentWorkflow
|
| 3 |
from llama_index.llms.openai import OpenAI
|
| 4 |
from tools import (image_analyzer_tool, youtube_transcript_tool, calculator_tool, read_document_tool, search_tool)
|
| 5 |
-
from llama_index.core.workflow import (Workflow, Context, step,
|
| 6 |
from llama_index.core.agent import ReActAgent
|
| 7 |
from dotenv import load_dotenv
|
| 8 |
load_dotenv()
|
|
|
|
| 2 |
from llama_index.core.agent.workflow import AgentWorkflow
|
| 3 |
from llama_index.llms.openai import OpenAI
|
| 4 |
from tools import (image_analyzer_tool, youtube_transcript_tool, calculator_tool, read_document_tool, search_tool)
|
| 5 |
+
from llama_index.core.workflow import (Workflow, Context, step, StartEvent, StopEvent, Event)
|
| 6 |
from llama_index.core.agent import ReActAgent
|
| 7 |
from dotenv import load_dotenv
|
| 8 |
load_dotenv()
|
app.py
CHANGED
|
@@ -239,7 +239,7 @@ if __name__ == "__main__":
|
|
| 239 |
print(f"✅ SPACE_HOST found: {space_host_startup}")
|
| 240 |
print(f" Runtime URL should be: https://{space_host_startup}.hf.space")
|
| 241 |
else:
|
| 242 |
-
print("ℹ️
|
| 243 |
|
| 244 |
if space_id_startup: # Print repo URLs if SPACE_ID is found
|
| 245 |
print(f"✅ SPACE_ID found: {space_id_startup}")
|
|
|
|
| 239 |
print(f"✅ SPACE_HOST found: {space_host_startup}")
|
| 240 |
print(f" Runtime URL should be: https://{space_host_startup}.hf.space")
|
| 241 |
else:
|
| 242 |
+
print("ℹ️ SPACE_HOST environment variable not found (running locally?).")
|
| 243 |
|
| 244 |
if space_id_startup: # Print repo URLs if SPACE_ID is found
|
| 245 |
print(f"✅ SPACE_ID found: {space_id_startup}")
|