iisadia commited on
Commit
d207c3c
·
verified ·
1 Parent(s): 9b31245

Create templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +27 -0
templates/index.html ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Chatbot Agent</title>
5
+ <style>
6
+ body { font-family: Arial, sans-serif; max-width: 800px; margin: 0 auto; padding: 20px; }
7
+ .chatbox { border: 1px solid #ddd; padding: 20px; border-radius: 8px; height: 400px; overflow-y: scroll; }
8
+ input { width: 70%; padding: 10px; }
9
+ button { padding: 10px 20px; background: #007bff; color: white; border: none; border-radius: 4px; }
10
+ </style>
11
+ </head>
12
+ <body>
13
+ <h1>Chatbot Agent (Mistral-7B)</h1>
14
+ <div class="chatbox">
15
+ {% if bot_response %}
16
+ <p><strong>You:</strong> {{ user_input }}</p>
17
+ <p><strong>Bot:</strong> {{ bot_response }}</p>
18
+ {% else %}
19
+ <p>Ask me anything...</p>
20
+ {% endif %}
21
+ </div>
22
+ <form method="POST">
23
+ <input type="text" name="user_input" placeholder="Type your message..." required>
24
+ <button type="submit">Send</button>
25
+ </form>
26
+ </body>
27
+ </html>