Spaces:
Build error
Build error
Commit
·
eebe7e0
1
Parent(s):
7043542
Update app.py
Browse files
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 |
-
|
28 |
-
|
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", "")
|