Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -38,7 +38,7 @@ def summarize_text(text: str) -> str:
|
|
38 |
# Get the input from the frontend
|
39 |
@app.get("/getdata")
|
40 |
def get_data(input: str = Query(..., title="YouTube Video URL")) -> dict:
|
41 |
-
|
42 |
transcript = get_youtube_transcript(input)
|
43 |
if transcript:
|
44 |
summary = summarize_text(transcript)
|
|
|
38 |
# Get the input from the frontend
|
39 |
@app.get("/getdata")
|
40 |
def get_data(input: str = Query(..., title="YouTube Video URL")) -> dict:
|
41 |
+
|
42 |
transcript = get_youtube_transcript(input)
|
43 |
if transcript:
|
44 |
summary = summarize_text(transcript)
|