Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,16 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from agentos_core import AgentCore
|
| 3 |
|
| 4 |
-
|
|
|
|
|
|
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
iface = gr.Interface(
|
| 11 |
fn=interact,
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from agentos_core import AgentCore
|
| 3 |
|
| 4 |
+
if __name__ == "__main__":
|
| 5 |
+
# Create your first agent instance
|
| 6 |
+
agent = AgentCore()
|
| 7 |
|
| 8 |
+
# Test prompt
|
| 9 |
+
test_prompt = "Hello Agent, summarize what you are."
|
| 10 |
+
response = agent.run(test_prompt)
|
| 11 |
+
|
| 12 |
+
print("=== Agent Output ===")
|
| 13 |
+
print(response)
|
| 14 |
|
| 15 |
iface = gr.Interface(
|
| 16 |
fn=interact,
|