Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -29,7 +29,7 @@ def get_youtube_transcript(video_url):
|
|
29 |
text_transcript = formatter.format_transcript(transcript)
|
30 |
return text_transcript
|
31 |
except Exception as e:
|
32 |
-
return e
|
33 |
|
34 |
def summarize_text(text):
|
35 |
try:
|
@@ -41,7 +41,7 @@ def summarize_text(text):
|
|
41 |
|
42 |
return summarized_text[0]['summary_text']
|
43 |
except Exception as e:
|
44 |
-
return e
|
45 |
|
46 |
# Get the input from the frontend
|
47 |
@app.get("/getdata")
|
|
|
29 |
text_transcript = formatter.format_transcript(transcript)
|
30 |
return text_transcript
|
31 |
except Exception as e:
|
32 |
+
return f" {e}"
|
33 |
|
34 |
def summarize_text(text):
|
35 |
try:
|
|
|
41 |
|
42 |
return summarized_text[0]['summary_text']
|
43 |
except Exception as e:
|
44 |
+
return f"{e}"
|
45 |
|
46 |
# Get the input from the frontend
|
47 |
@app.get("/getdata")
|