Skip to content

Commit 53f9996

Browse files
authored
Merge pull request #2 from Public-Computing-Lab/delpoy_test
Added version 0.01 to the website
2 parents 3246140 + 23ee700 commit 53f9996

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

app.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
import uuid
99
from dotenv import load_dotenv
1010

11+
APP_VERSION = "0.01"
12+
1113
# ✅ Load environment variables
1214
load_dotenv()
1315
GEMINI_API_KEY = os.getenv("GEMINI_API_KEY")
@@ -99,8 +101,8 @@ def log_query(question, answer):
99101
# ✅ Flask Routes
100102
@app.route("/")
101103
def home():
102-
"""Serves the chatbot frontend."""
103-
return render_template("index.html")
104+
"""Serves the chatbot frontend with version info."""
105+
return render_template("index.html", version=APP_VERSION)
104106

105107
@app.route("/ask", methods=["POST"])
106108
def ask():

templates/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ <h5>General Response Time</h5>
7777
<!-- Chatbot Main Area -->
7878
<div class="col-md-6">
7979
<div class="chat-container">
80-
<div class="chat-header">ReThink AI Chatbot</div>
80+
<div class="chat-header">
81+
ReThink AI Chatbot <span style="font-size: 14px; font-weight: normal;">(v{{ version }})</span>
82+
</div>
8183
<div class="chat-box" id="chatBox"></div>
8284
<!-- Loading Spinner (Outside chat container for better visibility) -->
8385
<div id="loadingSpinner" class="text-center" style="display: none; margin-top: 10px;">

0 commit comments

Comments
 (0)