adriiita commited on
Commit
4e08d4a
·
verified ·
1 Parent(s): 6135bb3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"Error processing YouTube URL: {str(e)}", ""
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: