Spaces:
Runtime error
Runtime error
Shroominic
commited on
Commit
Β·
ae0deb8
1
Parent(s):
9804ef1
π fix iris.csv filename
Browse files
examples/assets/{_iris.csv β iris.csv}
RENAMED
|
File without changes
|
examples/convert_file.py
CHANGED
|
@@ -9,10 +9,12 @@ async def main():
|
|
| 9 |
File.from_path("examples/assets/iris.csv"),
|
| 10 |
]
|
| 11 |
|
| 12 |
-
|
| 13 |
-
file = output.files[0]
|
| 14 |
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
|
| 18 |
if __name__ == "__main__":
|
|
|
|
| 9 |
File.from_path("examples/assets/iris.csv"),
|
| 10 |
]
|
| 11 |
|
| 12 |
+
response = await session.generate_response(user_request, files)
|
|
|
|
| 13 |
|
| 14 |
+
print("AI: ", response.content)
|
| 15 |
+
for file in response.files:
|
| 16 |
+
if file.name == "iris.xlsx":
|
| 17 |
+
file.save("examples/assets/iris.xlsx")
|
| 18 |
|
| 19 |
|
| 20 |
if __name__ == "__main__":
|