Spaces:
Runtime error
Runtime error
File size: 615 Bytes
7d8f76d efd6e56 7d8f76d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
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() |