Spaces:
Paused
Paused
Create main.py
Browse files
main.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import asyncio
|
| 2 |
+
from ai_system.ai_core_agix import AICoreAGIX
|
| 3 |
+
|
| 4 |
+
async def main():
|
| 5 |
+
ai_core = AICoreAGIX(config_path="config.json")
|
| 6 |
+
query = "What will be the next breakthrough in AI?"
|
| 7 |
+
response = await ai_core.generate_response(query, user_id=1)
|
| 8 |
+
print(response)
|
| 9 |
+
await ai_core.http_session.close()
|
| 10 |
+
|
| 11 |
+
if __name__ == "__main__":
|
| 12 |
+
asyncio.run(main())
|