Rehman1603 commited on
Commit
23c6c56
·
verified ·
1 Parent(s): c9723c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -69,11 +69,11 @@ def main(link, difficulty_level):
69
  iface = gr.Interface(
70
  fn=main,
71
  inputs=[
72
- gr.inputs.Textbox(lines=2, placeholder="Enter YouTube video link"),
73
- gr.inputs.Dropdown(["Easy", "Medium", "Hard"], label="Select difficulty level:")
74
  ],
75
  outputs=[
76
- gr.outputs.JSON(label="MCQs Output")
77
  ],
78
  title="YouTube Video Subtitle to MCQs Quiz",
79
  description="Generate MCQs from YouTube video subtitles"
 
69
  iface = gr.Interface(
70
  fn=main,
71
  inputs=[
72
+ gr.components.Textbox(lines=2, placeholder="Enter YouTube video link"),
73
+ gr.components.Dropdown(["Easy", "Medium", "Hard"], label="Select difficulty level:")
74
  ],
75
  outputs=[
76
+ gr.components.JSON(label="MCQs Output")
77
  ],
78
  title="YouTube Video Subtitle to MCQs Quiz",
79
  description="Generate MCQs from YouTube video subtitles"