abdullah040 commited on
Commit
eebe7e0
·
1 Parent(s): 7043542

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,8 +24,8 @@ def gpt3_completion(prompt, engine='text-davinci-002', temp=0.6, top_p=1.0, toke
24
  def summarize_podcast(podcast):
25
  # Open the transcript file
26
  print("ayay hai")
27
- vtt = podcast
28
- transcript = vtt
29
  res = len(transcript.split())
30
 
31
  transcript = transcript.replace("WEBVTT", "")
 
24
  def summarize_podcast(podcast):
25
  # Open the transcript file
26
  print("ayay hai")
27
+ with open(podcast) as file:
28
+ transcript = file.read()
29
  res = len(transcript.split())
30
 
31
  transcript = transcript.replace("WEBVTT", "")