Skip to content

Commit 15bd39b

Browse files
authored
Update HTTP Post Image and MP4 (Ameba-AIoT#60)
Update HTTP Post Image and MP4
1 parent 41ed38b commit 15bd39b

File tree

5 files changed

+16
-1
lines changed

5 files changed

+16
-1
lines changed
Loading
Loading
Loading

source/ameba_pro2/amb82-mini/Example_Guides/HTTP/HTTP Post Image and MP4.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ Compile and run the example.
3131

3232
Set up the HTTP server by locating the python script called whisper_server_test_2_endpoints.py. Go to command prompt and go to the src folder. Execute this command python3 whisper_server_test_2_endpoints.py.
3333

34+
The files are located in the libraries/Http/src directory. You will need to navigate to this folder before running the Python command as shown in the example.
35+
36+
|image03|
37+
3438
Please note that this server can only be run on Linux OS. Mac OS and Windows have not been supported yet.
3539

3640
Press button for 2s when you wish to take a snapshot and speak into the mic for the prompt to ask the Visual Language Model (VLM).
@@ -44,3 +48,7 @@ If the HTTP Post image and audio file is successful, the image and audio file wi
4448
.. |image02| image:: ../../../../_static/amebapro2/Example_Guides/HTTP/HTTP_Post_Image_and_MP4/image02.png
4549
:width: 988 px
4650
:height: 802 px
51+
52+
.. |image03| image:: ../../../../_static/amebapro2/Example_Guides/HTTP/HTTP_Post_Image_and_MP4/image03.png
53+
:width: 1082 px
54+
:height: 482 px

source/ameba_pro2/amb82-mini/Example_Guides/HTTP/HTTP Post MP4.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,18 @@ Compile and run the code.
4343

4444
Set up the http server by locating the python script called “whisper_llm_server.py” in src folder. Go to command prompt and go to the src folder and execute this command: python3 whisper_llm_server.py. Follow the readme in the python script.
4545

46+
The files are located in the libraries/Http/src directory. You will need to navigate to this folder before running the Python command as shown in the example.
47+
48+
|image04|
49+
4650
Press the push button for 2s to trigger the recording. Speak into the microphone to ask the AI. This should be the expected output on the terminal that was running the python script. Please note that if you are
4751
to use a more powerful model such as MediaTek 7B model, you will need a
4852
PC with a powerful GPU to test. Purely CPU will not be able to run that
4953
model.
5054

5155
Please note that this server can only be run on Linux OS. Mac OS and Windows have not been supported yet.
5256

53-
|image04|
57+
|image05|
5458

5559
.. |image01| image:: ../../../../_static/amebapro2/Example_Guides/HTTP/HTTP_Post_MP4/image01.png
5660
:width: 722 px
@@ -62,5 +66,8 @@ Please note that this server can only be run on Linux OS. Mac OS and Windows hav
6266
:width: 1032 px
6367
:height: 645 px
6468
.. |image04| image:: ../../../../_static/amebapro2/Example_Guides/HTTP/HTTP_Post_MP4/image04.png
69+
:width: 1082 px
70+
:height: 482 px
71+
.. |image05| image:: ../../../../_static/amebapro2/Example_Guides/HTTP/HTTP_Post_MP4/image05.png
6572
:width: 1157 px
6673
:height: 234 px

0 commit comments

Comments
 (0)