Spaces:
Sleeping
Sleeping
Create templates/index.html
Browse files- 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>
|