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 " ,
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" ,
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 " ,
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" ,
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" ,
309307 }
310308 ],
311309 "metadata" : {
310+ "colab" : {
311+ "provenance" : []
312+ },
312313 "kernelspec" : {
313314 "display_name" : " amadeusgpt-cpu" ,
314315 "language" : " python" ,
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+ }
0 commit comments