Spaces:
Runtime error
Runtime error
File size: 1,072 Bytes
3783a61 3dfc3a2 3783a61 7ece4ee 21e6506 2b28c21 21e6506 2b28c21 21e6506 2b28c21 21e6506 2b28c21 21e6506 2b28c21 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
---
itle: Multimodal
emoji: π
colorFrom: yellow
colorTo: indigo
sdk: docker
pinned: false
license: mit
---
# Video in, audio out
This is a [Shiny for Python](https://shiny.posit.co/py/) app for easily interacting with GPT-4o via short webcam recordings.
## Installation
### ffmpeg
You will need the `ffmpeg` utility installed. Either use the [official installers](https://ffmpeg.org/download.html), or `brew install ffmpeg` (for macOS brew users) or `choco install ffmpeg` (for Windows chocolatey users).
### OpenAI API key
Create a file called `.env` in the root of the project and add the following line:
```
OPENAI_API_KEY=<your-api-key>
```
If you have an OpenAI account, you can generate an API key from [this page](https://platform.openai.com/api-keys).
### Python dependencies
```
pip install -r requirements.txt
```
## Usage
```
shiny run app.py --port 0 --launch-browser
```
This will launch a browser window with a video preview. Press Record, speak your prompt, and press Stop. The video will be processed and the response will be read aloud.
|