Skip to content

Commit

Permalink
📇 fix iris.csv filename
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Jul 16, 2023
1 parent 9804ef1 commit ae0deb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
File renamed without changes.
8 changes: 5 additions & 3 deletions examples/convert_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ async def main():
File.from_path("examples/assets/iris.csv"),
]

output = await session.generate_response(user_request, files=files)
file = output.files[0]
response = await session.generate_response(user_request, files)

file.save("examples/assets/Iris.xlsx")
print("AI: ", response.content)
for file in response.files:
if file.name == "iris.xlsx":
file.save("examples/assets/iris.xlsx")


if __name__ == "__main__":
Expand Down

0 comments on commit ae0deb8

Please sign in to comment.