Skip to content

Commit a32c490

Browse files
committed
fix import order
1 parent 3510fbc commit a32c490

File tree

5 files changed

+67
-98
lines changed

5 files changed

+67
-98
lines changed

notebooks/EPM_demo.ipynb

Lines changed: 56 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -2,65 +2,59 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5+
"id": "ucAO18VGki49",
6+
"metadata": {
7+
"id": "ucAO18VGki49"
8+
},
59
"source": [
610
"# AmadeusGPT Demo: Elevated Plus Maze\n",
711
"\n",
812
"- please get an openAI user key: https://platform.openai.com/api-keys.\n",
913
"- We suggest to run the demos locally, but it can be viewed on Google Colab. Some interactive features might not be available."
10-
],
11-
"metadata": {
12-
"id": "ucAO18VGki49"
13-
},
14-
"id": "ucAO18VGki49"
14+
]
1515
},
1616
{
1717
"cell_type": "code",
18-
"source": [
19-
"!pip install --pre amadeusgpt"
20-
],
18+
"execution_count": null,
19+
"id": "G1T_fMhMk-eL",
2120
"metadata": {
2221
"id": "G1T_fMhMk-eL"
2322
},
24-
"id": "G1T_fMhMk-eL",
25-
"execution_count": null,
26-
"outputs": []
27-
},
28-
{
29-
"cell_type": "code",
23+
"outputs": [],
3024
"source": [
31-
"import amadeusgpt"
32-
],
33-
"metadata": {
34-
"id": "60BDrTbvq52n"
35-
},
36-
"id": "60BDrTbvq52n",
37-
"execution_count": null,
38-
"outputs": []
25+
"!pip install --pre amadeusgpt"
26+
]
3927
},
4028
{
4129
"cell_type": "markdown",
42-
"source": [
43-
"- Let's test that your open AI API Key works:"
44-
],
30+
"id": "OfCVzMfZpoLm",
4531
"metadata": {
4632
"id": "OfCVzMfZpoLm"
4733
},
48-
"id": "OfCVzMfZpoLm"
34+
"source": [
35+
"- Let's test that your open AI API Key works:"
36+
]
4937
},
5038
{
5139
"cell_type": "code",
52-
"source": [
53-
"mykey = \"paste-your-key-here\""
54-
],
40+
"execution_count": null,
41+
"id": "y4EfAARMqMUU",
5542
"metadata": {
5643
"id": "y4EfAARMqMUU"
5744
},
58-
"id": "y4EfAARMqMUU",
59-
"execution_count": null,
60-
"outputs": []
45+
"outputs": [],
46+
"source": [
47+
"mykey = \"paste-your-key-here\""
48+
]
6149
},
6250
{
6351
"cell_type": "code",
52+
"execution_count": null,
53+
"id": "IbperdFZpnLn",
54+
"metadata": {
55+
"id": "IbperdFZpnLn"
56+
},
57+
"outputs": [],
6458
"source": [
6559
"from openai import OpenAI\n",
6660
"\n",
@@ -71,13 +65,17 @@
7165
" messages=[{\"role\": \"user\", \"content\": \"Hello\"}]\n",
7266
")\n",
7367
"print(response.choices[0].message.content)"
74-
],
75-
"metadata": {
76-
"id": "IbperdFZpnLn"
77-
},
78-
"id": "IbperdFZpnLn",
68+
]
69+
},
70+
{
71+
"cell_type": "code",
7972
"execution_count": null,
80-
"outputs": []
73+
"id": "8058bc49",
74+
"metadata": {},
75+
"outputs": [],
76+
"source": [
77+
"import amadeusgpt"
78+
]
8179
},
8280
{
8381
"cell_type": "code",
@@ -115,17 +113,23 @@
115113
},
116114
{
117115
"cell_type": "markdown",
118-
"source": [
119-
"## Please upload the demo video and associated files:\n",
120-
"- you can grab it from here: https://github.com/AdaptiveMotorControlLab/AmadeusGPT/tree/mwm/docs/examples/EPM\n"
121-
],
116+
"id": "ouLH5-MpmPsu",
122117
"metadata": {
123118
"id": "ouLH5-MpmPsu"
124119
},
125-
"id": "ouLH5-MpmPsu"
120+
"source": [
121+
"## Please upload the demo video and associated files:\n",
122+
"- you can grab it from here: https://github.com/AdaptiveMotorControlLab/AmadeusGPT/tree/mwm/docs/examples/EPM\n"
123+
]
126124
},
127125
{
128126
"cell_type": "code",
127+
"execution_count": null,
128+
"id": "uxmS4XwSmQFP",
129+
"metadata": {
130+
"id": "uxmS4XwSmQFP"
131+
},
132+
"outputs": [],
129133
"source": [
130134
"from google.colab import files\n",
131135
"\n",
@@ -134,13 +138,7 @@
134138
" print(f'User uploaded file \"{filepath}\" with length {len(content)} bytes')\n",
135139
"\n",
136140
"video_path = Path(filepath).resolve()"
137-
],
138-
"metadata": {
139-
"id": "uxmS4XwSmQFP"
140-
},
141-
"id": "uxmS4XwSmQFP",
142-
"execution_count": null,
143-
"outputs": []
141+
]
144142
},
145143
{
146144
"cell_type": "markdown",
@@ -186,13 +184,13 @@
186184
},
187185
{
188186
"cell_type": "markdown",
189-
"source": [
190-
"#### 🚨 warning, if you see an error `AttributeError: 'NoneType' object has no attribute 'choices'`, look above for openAI errors"
191-
],
187+
"id": "NG15yauFo6rN",
192188
"metadata": {
193189
"id": "NG15yauFo6rN"
194190
},
195-
"id": "NG15yauFo6rN"
191+
"source": [
192+
"#### 🚨 warning, if you see an error `AttributeError: 'NoneType' object has no attribute 'choices'`, look above for openAI errors"
193+
]
196194
},
197195
{
198196
"cell_type": "markdown",
@@ -309,6 +307,9 @@
309307
}
310308
],
311309
"metadata": {
310+
"colab": {
311+
"provenance": []
312+
},
312313
"kernelspec": {
313314
"display_name": "amadeusgpt-cpu",
314315
"language": "python",
@@ -325,11 +326,8 @@
325326
"nbconvert_exporter": "python",
326327
"pygments_lexer": "ipython3",
327328
"version": "3.10.0"
328-
},
329-
"colab": {
330-
"provenance": []
331329
}
332330
},
333331
"nbformat": 4,
334332
"nbformat_minor": 5
335-
}
333+
}

notebooks/Horse_demo.ipynb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,6 @@
2121
"!pip install --pre amadeusgpt"
2222
]
2323
},
24-
{
25-
"cell_type": "code",
26-
"execution_count": null,
27-
"id": "8a4b43f5",
28-
"metadata": {},
29-
"outputs": [],
30-
"source": [
31-
"import amadeusgpt"
32-
]
33-
},
3424
{
3525
"cell_type": "markdown",
3626
"id": "2cbd7674",

notebooks/MABe_demo.ipynb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,6 @@
2121
"!pip install --pre amadeusgpt"
2222
]
2323
},
24-
{
25-
"cell_type": "code",
26-
"execution_count": null,
27-
"id": "af443386",
28-
"metadata": {},
29-
"outputs": [],
30-
"source": [
31-
"import amadeusgpt"
32-
]
33-
},
3424
{
3525
"cell_type": "markdown",
3626
"id": "ee2fdd05",

notebooks/Use_Task_Program.ipynb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,6 @@
1717
"!pip install --pre amadeusgpt"
1818
]
1919
},
20-
{
21-
"cell_type": "code",
22-
"execution_count": null,
23-
"metadata": {},
24-
"outputs": [],
25-
"source": [
26-
"import amadeusgpt"
27-
]
28-
},
2920
{
3021
"cell_type": "markdown",
3122
"metadata": {},

notebooks/YourData.ipynb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,6 @@
1919
"!pip install --pre deeplabcut"
2020
]
2121
},
22-
{
23-
"cell_type": "code",
24-
"execution_count": null,
25-
"id": "b9b7ffb6",
26-
"metadata": {},
27-
"outputs": [],
28-
"source": [
29-
"import amadeusgpt\n",
30-
"import deeplabcut"
31-
]
32-
},
3322
{
3423
"cell_type": "markdown",
3524
"id": "076dcb4a",
@@ -66,6 +55,17 @@
6655
"print(response.choices[0].message.content)"
6756
]
6857
},
58+
{
59+
"cell_type": "code",
60+
"execution_count": null,
61+
"id": "55acfefe",
62+
"metadata": {},
63+
"outputs": [],
64+
"source": [
65+
"import amadeusgpt\n",
66+
"import deeplabcut"
67+
]
68+
},
6969
{
7070
"cell_type": "code",
7171
"execution_count": null,

0 commit comments

Comments
 (0)