File size: 458 Bytes
7ff8b05
e3f5147
496c5b5
 
 
 
bd64ae8
496c5b5
bd64ae8
 
 
7ff8b05
bd64ae8
 
802d13a
bd64ae8
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import streamlit as st
import stable_whisper
import requests
import os

# Variables
valid_api_token = st.secrets["API_TOKEN"]

# Free tier or API token option
use_free_tier = st.checkbox("Free Tier (Max 2 minutes)")
api_token = st.text_input("API Token (Unlimited)")

# Model selection
model_size = st.selectbox("Model Size", ("tiny", "base", "small", "medium"))

# Upload audio file
uploaded_file = st.file_uploader("Upload Audio File", type=["mp3", "wav"])