Skip to content

Commit

Permalink
make the image display properly
Browse files Browse the repository at this point in the history
  • Loading branch information
commit111 committed Nov 28, 2024
1 parent d0449d9 commit 7c9c778
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/app.py
Original file line number Diff line number Diff line change
@@ -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():
Expand Down
2 changes: 1 addition & 1 deletion app/requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion app/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
<body>
<div class="chat-container">
<div class="img-container">
<img class="icon" src="imgs/defang_icon.svg"/>
<img class="icon" src="{{ url_for('static', filename='defang_icon.svg') }}" alt="defang_icon"/>
</div>
<h2>Ask Defang</h2>
<div id="chat-box" class="chat-box"></div>
Expand Down

0 comments on commit 7c9c778

Please sign in to comment.