File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88import uuid
99from dotenv import load_dotenv
1010
11+ APP_VERSION = "0.01"
12+
1113# ✅ Load environment variables
1214load_dotenv ()
1315GEMINI_API_KEY = os .getenv ("GEMINI_API_KEY" )
@@ -99,8 +101,8 @@ def log_query(question, answer):
99101# ✅ Flask Routes
100102@app .route ("/" )
101103def 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" ])
106108def ask ():
Original file line number Diff line number Diff 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; ">
You can’t perform that action at this time.
0 commit comments