shethjenil commited on
Commit
2982dc4
1 Parent(s): 5b6d38e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -87,7 +87,7 @@ def function7():
87
  question = flask.request.args.get("question")
88
  if question:
89
  meta = book.retrieve(AIBook.translate_to_eng(question))[0].node.relationships[NodeRelationship("1")].metadata
90
- flask.redirect(BeautifulSoup(reqget(f"https://jainqq.org/explore/{meta['bookid']}/{meta['page']}").content, "html.parser").find("img",class_="img-fluid").get("src"))
91
 
92
  if __name__ == '__main__':
93
  app.run("0.0.0.0",7860)
 
87
  question = flask.request.args.get("question")
88
  if question:
89
  meta = book.retrieve(AIBook.translate_to_eng(question))[0].node.relationships[NodeRelationship("1")].metadata
90
+ return flask.redirect(BeautifulSoup(reqget(f"https://jainqq.org/explore/{meta['bookid']}/{meta['page']}").content, "html.parser").find("img",class_="img-fluid").get("src"))
91
 
92
  if __name__ == '__main__':
93
  app.run("0.0.0.0",7860)