Skip to content

Commit

Permalink
swap old and new yolov3 impl.
Browse files Browse the repository at this point in the history
  • Loading branch information
KTachibanaM committed Oct 22, 2024
1 parent e55d8d0 commit 8e10d7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ def download_feed(rss_url: str, headers) -> Union[str, Response]:
return Response("Failed to download the feed", 500)


@app.route("/rss_image_recog")
def _rss_image_recog():
@app.route("/rss_image_recog_old")
def _rss_image_recog_old():
if not is_yolov3_available():
return "Image recognition is not enabled", 400

Expand Down Expand Up @@ -79,8 +79,8 @@ def _rss_image_recog():
return e.message, 500


@app.route("/rss_image_recog_tf")
def rss_image_recog_tf():
@app.route("/rss_image_recog")
def _rss_image_recog():
# parse url
url = request.args.get('url', default=None)
if not url:
Expand Down

0 comments on commit 8e10d7b

Please sign in to comment.