Dy commited on
Commit
6f3dcc0
1 Parent(s): c260a9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -38,7 +38,7 @@ def answer_question(youtube_url, user_question):
38
  # For now, let's return the user question as output.
39
 
40
  f= open("temp.txt","w+")
41
- f.write(get_captions("https://www.youtube.com/watch?v=mXjaob63K2w"))
42
  f.close()
43
 
44
  loader = TextLoader("temp.txt")
@@ -59,7 +59,7 @@ iface = gr.Interface(
59
  ],
60
  outputs=gr.outputs.Textbox(),
61
  title="YouTube Video Question Answering",
62
- description="Enter a YouTube URL and a question related to the video content. The app will return the answer if answer exist from the video."
63
  )
64
  if __name__ == "__main__":
65
  iface.launch()
 
38
  # For now, let's return the user question as output.
39
 
40
  f= open("temp.txt","w+")
41
+ f.write(get_captions(user_question))
42
  f.close()
43
 
44
  loader = TextLoader("temp.txt")
 
59
  ],
60
  outputs=gr.outputs.Textbox(),
61
  title="YouTube Video Question Answering",
62
+ description="Enter a YouTube URL and a question related to the video content. The app will return the answer if answer exists in the video."
63
  )
64
  if __name__ == "__main__":
65
  iface.launch()