Huganas commited on
Commit
0ae00c9
·
1 Parent(s): 1663db8

Create index.html

Browse files
Files changed (1) hide show
  1. index.html +24 -0
index.html ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>ChatGPT-like Interface</title>
7
+ <link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
8
+ </head>
9
+ <body>
10
+ <div id="container">
11
+ <div id="chat-box">
12
+ {% for entry in chat_history_entries %}
13
+ <div class="chat-entry">
14
+ <strong>User:</strong> {{ entry.user_message }}<br>
15
+ <strong>Chatbot:</strong> {{ entry.chatbot_response }}
16
+ </div>
17
+ {% endfor %}
18
+ </div>
19
+ <div id="gr-interface">
20
+ {{ gr.Interface(get_text_response, "text", live=True).launch(share=True) }}
21
+ </div>
22
+ </div>
23
+ </body>
24
+ </html>