/whisper-jax-lambda

Primary LanguagePythonThe UnlicenseUnlicense

sdk sdk_version app_file
gradio
3.32.0
app.py

Links

🐣 Please follow me for new updates https://twitter.com/camenduru
🔥 Please join our discord server https://discord.gg/k5BwmmvJJU

Main Repo

https://github.com/sanchit-gandhi/whisper-jax

Model

https://huggingface.co/openai/whisper-large-v2

API Tutorial

Screenshot 2023-06-01 100159

from IPython.display import HTML, display
def set_css():
  display(HTML('''
  <style>
    pre {
        white-space: pre-wrap;
    }
  </style>
  '''))
get_ipython().events.register('pre_run_cell', set_css)

!pip install gradio_client

from gradio_client import Client
client = Client("https://demo.PAGE_ID.lambdaspaces.com/")

video = client.predict("https://www.youtube.com/watch?v=SN2sak8Tp70", fn_index=0)
text, srt = client.predict(video,	fn_index=1)
print(text)
print(srt)