Spaces:
Runtime error
Runtime error
Create app.py
Browse filesstreamlit file created
app.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
import openai
|
| 3 |
+
from agentpro import create_model, ReactAgent
|
| 4 |
+
from agentpro.tools import AresInternetTool, UserInputTool, CalculateTool , SignalGeneratorAgent, SignalAnalyzerAgent, SignalDiagnosticAgent, ReportAgent # Adjust import path
|
| 5 |
+
|
| 6 |
+
# Set your API keys here or use Streamlit secrets
|
| 7 |
+
openai.api_key = st.secrets["OPENAI_API_KEY"]
|
| 8 |
+
ares_key = st.secrets["ARES_KEY"]
|
| 9 |
+
|
| 10 |
+
st.set_page_config(page_title="Demo Assistant", layout="wide")
|
| 11 |
+
st.title("🔍 Demo AI Agent")
|
| 12 |
+
st.header("Demo Agent")
|