Shroominic commited on
Commit
1e8c421
·
1 Parent(s): 3539336

🖇️ add example assets

Browse files
README.md CHANGED
@@ -37,8 +37,7 @@ await session.stop()
37
  ```
38
  ## Output
39
 
40
- ![Bitcoin YTD](https://raw.githubusercontent.com/shroominic/codeinterpreterapi/main/examples/bitcoin_chart.png)
41
-
42
 
43
  ## Production
44
 
 
37
  ```
38
  ## Output
39
 
40
+ ![Bitcoin YTD](https://github.com/shroominic/codeinterpreter-api/blob/main/examples/bitcoin_chart.png?raw=true)
 
41
 
42
  ## Production
43
 
examples/{Iris.csv → assets/Iris.csv} RENAMED
File without changes
examples/{bitcoin_chart.png → assets/bitcoin_chart.png} RENAMED
File without changes
examples/convert_file.py CHANGED
@@ -6,13 +6,13 @@ async def main():
6
  async with CodeInterpreterSession() as session:
7
  user_request = "Convert this dataset to excel."
8
  files = [
9
- File.from_path("examples/iris.csv"),
10
  ]
11
 
12
  output = await session.generate_response(user_request, files=files)
13
  file = output.files[0]
14
 
15
- file.save("examples/iris.xlsx")
16
 
17
 
18
  if __name__ == "__main__":
 
6
  async with CodeInterpreterSession() as session:
7
  user_request = "Convert this dataset to excel."
8
  files = [
9
+ File.from_path("examples/assets/iris.csv"),
10
  ]
11
 
12
  output = await session.generate_response(user_request, files=files)
13
  file = output.files[0]
14
 
15
+ file.save("examples/assets/iris.xlsx")
16
 
17
 
18
  if __name__ == "__main__":