Spaces:
Runtime error
Runtime error
Update app.py
Browse files31 unmodified lines32333435363738166 unmodified lines20520620720820921031 unmodified lines# Instead of hardcoding the DB URI, get it from an environment variable.# This lets you plug in any single DB by changing the DATABASE_URI environment variable.DATABASE_URI = os.getenv("DATABASE_URI", "sqlite:///employee.db")GROQ_API_KEY = os.getenv("GROQ_API_KEY")os.environ["GROQ_API_KEY"] = GROQ_API_KEY166 unmodified linesworkflow.add_edge("correct_query", "execute_query")workflow.add_edge("execute_query", "query_gen")# Compile and return the agent application workflow.return workflow.compile()31 unmodified lines32333435363738166 unmodified lines20520620720820921021131 unmodified lines# Instead of hardcoding the DB URI, get it from an environment variable.# This lets you plug in any single DB by changing the DATABASE_URI environment variable.DATABASE_URI = os.getenv("DATABASE_URI", "employee.db")GROQ_API_KEY = os.getenv("GROQ_API_KEY")os.environ["GROQ_API_KEY"] = GROQ_API_KEY166 unmodified linesworkflow.add_edge("correct_query", "execute_query")workflow.add_edge("execute_query", "query_gen")# Compile and return the agent application workflow.return workflow.compile()
app.py+2-1