Spaces:
Runtime error
Runtime error
| import gradio as gr | |
| import torch | |
| import whisper | |
| import requests | |
| from pytube import YouTube | |
| ### ββββββββββββββββββββββββββββββββββββββββ | |
| title="Transcript PDF" | |
| ### ββββββββββββββββββββββββββββββββββββββββ | |
| whisper_model = whisper.load_model("medium") | |
| device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") | |
| def greet(name): | |
| return "Hello " + name + "!!" | |
| iface = gr.Interface(fn=greet, inputs="text", outputs="text") | |
| iface.launch() |