Spaces:
Runtime error
Runtime error
File size: 381 Bytes
25a640f e0cbbfe 25a640f e0cbbfe 8f62e66 795fd03 25a640f e0cbbfe 25a640f e0cbbfe 25a640f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
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)
file = output.files[0]
file.show_image()
if __name__ == "__main__":
import asyncio
asyncio.run(main())
|