Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def process_youtube(youtube_url, num_questions):
|
|
50 |
|
51 |
return notes, quiz
|
52 |
except Exception as e:
|
53 |
-
return f"
|
54 |
|
55 |
# Create Gradio interface
|
56 |
with gr.Blocks(title="AI Teaching Assistant") as demo:
|
|
|
50 |
|
51 |
return notes, quiz
|
52 |
except Exception as e:
|
53 |
+
return f"⚠️ {str(e)}\n\nPlease try another YouTube video that has captions enabled.", ""
|
54 |
|
55 |
# Create Gradio interface
|
56 |
with gr.Blocks(title="AI Teaching Assistant") as demo:
|