Spaces:
Runtime error
Runtime error
run async
Browse files
app.py
CHANGED
|
@@ -12,7 +12,9 @@ agent = Agent(model,system_prompt=(
|
|
| 12 |
|
| 13 |
))
|
| 14 |
|
| 15 |
-
|
|
|
|
|
|
|
| 16 |
##The Zorvath
|
| 17 |
|
| 18 |
|
|
@@ -24,4 +26,9 @@ result_1 = agent.run_sync("for space travel which planet is the best")
|
|
| 24 |
#print(result_2.data)
|
| 25 |
|
| 26 |
|
| 27 |
-
st.markdown(result_1.data)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
))
|
| 14 |
|
| 15 |
+
async def main():
|
| 16 |
+
|
| 17 |
+
result_1 = agent.run_sync("for space travel which planet is the best")
|
| 18 |
##The Zorvath
|
| 19 |
|
| 20 |
|
|
|
|
| 26 |
#print(result_2.data)
|
| 27 |
|
| 28 |
|
| 29 |
+
st.markdown(result_1.data)
|
| 30 |
+
|
| 31 |
+
if __name__ == '__main__':
|
| 32 |
+
import asyncio
|
| 33 |
+
|
| 34 |
+
asyncio.run(main())
|