RamAnanth1 commited on
Commit
efd6e56
Β·
1 Parent(s): 0558af6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
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 + "!!"