Spaces:
Runtime error
Runtime error
File size: 388 Bytes
25a640f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | from codeinterpreterapi import CodeInterpreterSession
async def main():
async with CodeInterpreterSession() as session:
user_request = "Plot a sin wave and show it to me."
output = await session.generate_response(user_request)
print(output.content)
print(output.files)
if __name__ == "__main__":
import asyncio
asyncio.run(main())
|