|
| 1 | +# Audio Transcription App - Streamlit Cloud Deployment |
| 2 | + |
| 3 | +This repository is ready for deployment on Streamlit Cloud. |
| 4 | + |
| 5 | +## Current Status |
| 6 | + |
| 7 | +✅ **Local App Running**: There's currently a Streamlit app running on http://localhost:8501 |
| 8 | +✅ **Repository Ready**: All necessary files are configured for cloud deployment |
| 9 | +✅ **Dependencies Updated**: requirements.txt includes all needed packages with versions |
| 10 | + |
| 11 | +## Files Created for Deployment |
| 12 | + |
| 13 | +- `.streamlit/config.toml` - Streamlit configuration |
| 14 | +- `.streamlit/secrets.toml` - Template for environment variables |
| 15 | +- `requirements.txt` - Updated with specific versions for cloud deployment |
| 16 | +- `streamlit_app.py` - Your main application file |
| 17 | + |
| 18 | +## Deploy to Streamlit Cloud |
| 19 | + |
| 20 | +### Step 1: Push to GitHub |
| 21 | +```bash |
| 22 | +git add . |
| 23 | +git commit -m "Prepare for Streamlit Cloud deployment" |
| 24 | +git push origin main |
| 25 | +``` |
| 26 | + |
| 27 | +### Step 2: Deploy on Streamlit Cloud |
| 28 | +1. Go to [share.streamlit.io](https://share.streamlit.io) |
| 29 | +2. Click "New app" |
| 30 | +3. Connect your GitHub repository: `justinwu/audio-transcription` |
| 31 | +4. Select branch: `main` |
| 32 | +5. Main file path: `streamlit_app.py` |
| 33 | +6. Click "Deploy!" |
| 34 | + |
| 35 | +### Step 3: Configure Secrets (if needed) |
| 36 | +If your app needs API keys or other secrets: |
| 37 | +1. Go to your deployed app's settings |
| 38 | +2. Add secrets in the format: |
| 39 | +```toml |
| 40 | +[secrets] |
| 41 | +OPENAI_API_KEY = "your-key-here" |
| 42 | +``` |
| 43 | + |
| 44 | +## Local Development |
| 45 | + |
| 46 | +### Start Local Server |
| 47 | +```bash |
| 48 | +# Using the management script |
| 49 | +./run_streamlit.sh start |
| 50 | + |
| 51 | +# Or manually |
| 52 | +streamlit run streamlit_app.py |
| 53 | +``` |
| 54 | + |
| 55 | +### Stop Current Server |
| 56 | +```bash |
| 57 | +# Stop the management script version |
| 58 | +./run_streamlit.sh stop |
| 59 | + |
| 60 | +# Or kill the current process |
| 61 | +kill 36506 # Replace with actual PID |
| 62 | +``` |
| 63 | + |
| 64 | +## App Features |
| 65 | + |
| 66 | +- **Audio Transcription**: Upload MP3, WAV, MP4 files |
| 67 | +- **Semantic Search**: Search through transcripts using different algorithms |
| 68 | +- **Embedding Comparison**: Compare text, audio, and visual embeddings |
| 69 | +- **Real-time Processing**: Live transcription with Whisper AI |
| 70 | + |
| 71 | +## Troubleshooting |
| 72 | + |
| 73 | +1. **FFmpeg Issues**: The app checks for FFmpeg availability |
| 74 | +2. **Model Loading**: Whisper models are loaded on-demand |
| 75 | +3. **File Upload**: Supports multiple file formats |
| 76 | +4. **Memory Usage**: Large files may require more memory |
| 77 | + |
| 78 | +## Next Steps |
| 79 | + |
| 80 | +1. Test locally: `./run_streamlit.sh start` |
| 81 | +2. Push to GitHub |
| 82 | +3. Deploy on Streamlit Cloud |
| 83 | +4. Share your new app URL! |
0 commit comments