1tbfree commited on
Commit
cc9d4a0
·
verified ·
1 Parent(s): 41236a1

Create templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +31 -0
templates/index.html ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>FreeChat</title>
5
+ <style>
6
+ body { font-family: sans-serif; }
7
+
8
+ </style>
9
+ </head>
10
+ <body>
11
+
12
+ <h1>FreeChat</h1>
13
+
14
+ <form method="post">
15
+ <input type="text" name="message" placeholder="Type your message...">
16
+ <button type="submit">Send</button><br><br>
17
+
18
+ {% if message %}
19
+ <p><strong>You:</strong> {{ message }}</p>
20
+
21
+ {% if ai_response %}
22
+ <p><strong>Stranger:</strong> {{ ai_response }}</p>
23
+
24
+ {% endif %}
25
+
26
+ {% endif %}
27
+
28
+ </form>
29
+
30
+ </body>
31
+ </html>