diff --git a/app.py b/app.py
index 3c317af..0528fb9 100644
--- a/app.py
+++ b/app.py
@@ -1,4 +1,4 @@
-from flask import Flask, render_template, request
+from flask import Flask, render_template, request, send_from_directory
from flask_socketio import SocketIO, emit, join_room
import eventlet
@@ -53,6 +53,11 @@ with app.app_context():
db.create_all()
+@app.route("/favicon.ico")
+def favicon():
+ return send_from_directory(os.path.join(app.root_path, "static"), "favicon.ico")
+
+
@app.route("/")
def index():
return render_template("index.html")
@@ -110,7 +115,11 @@ def handle_message(data):
room=data["room"],
)
- if "claude" in data["message"] or "gpt-3" in data["message"] or "gpt-4" in data["message"]:
+ if (
+ "claude" in data["message"]
+ or "gpt-3" in data["message"]
+ or "gpt-4" in data["message"]
+ ):
# Emit a temporary message indicating that llm is processing
emit(
"message",
diff --git a/static/favicon.ico b/static/favicon.ico
new file mode 100644
index 0000000..05581e9
Binary files /dev/null and b/static/favicon.ico differ
diff --git a/templates/chat.html b/templates/chat.html
index 473e734..8f3738b 100644
--- a/templates/chat.html
+++ b/templates/chat.html
@@ -13,6 +13,8 @@
+
+