Spaces:
Runtime error
Runtime error
Commit
Β·
efd6e56
1
Parent(s):
0558af6
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,18 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
|
|
1 |
import gradio as gr
|
2 |
+
import torch
|
3 |
+
import whisper
|
4 |
+
import requests
|
5 |
+
from pytube import YouTube
|
6 |
+
|
7 |
+
### ββββββββββββββββββββββββββββββββββββββββ
|
8 |
+
|
9 |
+
title="Transcript PDF"
|
10 |
+
|
11 |
+
### ββββββββββββββββββββββββββββββββββββββββ
|
12 |
+
|
13 |
+
whisper_model = whisper.load_model("medium")
|
14 |
+
|
15 |
+
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
16 |
|
17 |
def greet(name):
|
18 |
return "Hello " + name + "!!"
|