From 7c9c778f38d496e30ec5f3966e0a6b205f6b9b3e Mon Sep 17 00:00:00 2001 From: commit111 Date: Thu, 28 Nov 2024 15:13:04 -0800 Subject: [PATCH] make the image display properly --- app/app.py | 2 +- app/requirements.txt | 2 +- app/templates/{imgs => images}/defang_icon.svg | 0 app/templates/index.html | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename app/templates/{imgs => images}/defang_icon.svg (100%) diff --git a/app/app.py b/app/app.py index faf6bda..abf3702 100644 --- a/app/app.py +++ b/app/app.py @@ -1,7 +1,7 @@ from flask import Flask, request, jsonify, render_template, Response, stream_with_context from rag_system import rag_system import subprocess -app = Flask(__name__) +app = Flask(__name__, static_folder='templates/images') @app.route('/', methods=['GET', 'POST']) def index(): diff --git a/app/requirements.txt b/app/requirements.txt index dff8006..aed5490 100644 --- a/app/requirements.txt +++ b/app/requirements.txt @@ -1,5 +1,5 @@ Flask==2.0.1 -Werkzeug==3.0.6 +Werkzeug==2.2.2 scikit-learn==0.24.2 numpy==1.21.0 sentence-transformers==2.1.0 diff --git a/app/templates/imgs/defang_icon.svg b/app/templates/images/defang_icon.svg similarity index 100% rename from app/templates/imgs/defang_icon.svg rename to app/templates/images/defang_icon.svg diff --git a/app/templates/index.html b/app/templates/index.html index fc43cdf..5305c7f 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -148,7 +148,7 @@
- + defang_icon

Ask Defang