TDN-M commited on
Commit
dade00a
·
verified ·
1 Parent(s): 136e1f5

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +41 -19
index.html CHANGED
@@ -1,19 +1,41 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>Chatbot Demo</title>
7
+ <link rel="stylesheet" href="styles.css">
8
+ </head>
9
+ <body>
10
+ <header>
11
+ <h1> Chatbot Demo</h1>
12
+ <p>Demo #1 - 13th March 2025</p>
13
+ </header>
14
+
15
+ <main>
16
+ <!-- Chatbot container -->
17
+ <div id="coze-chatbot"></div>
18
+ </main>
19
+
20
+ <!-- Coze SDK integration -->
21
+ <script src="https://sf-cdn.coze.com/obj/unpkg-va/flow-platform/chat-app-sdk/1.2.0-beta.5/libs/oversea/index.js"></script>
22
+ <script>
23
+ // Initialize chatbot
24
+ new CozeWebSDK.WebChatClient({
25
+ config: {
26
+ bot_id: '7505945028296982529', // Replace with your bot_id
27
+ },
28
+ componentProps: {
29
+ title: 'LAYA Chatbot', // Chatbot title
30
+ },
31
+ auth: {
32
+ type: 'token',
33
+ token: 'pat_WIXvy1WtxB9N3ttEPG487glTZpJi2LnNSCRywrJyNmfowEAC5TKHED7GtKq8B60d', // Replace with your token
34
+ onRefreshToken: function () {
35
+ return 'pat_WIXvy1WtxB9N3ttEPG487glTZpJi2LnNSCRywrJyNmfowEAC5TKHED7GtKq8B60d'; // Replace with a new token if needed
36
+ }
37
+ }
38
+ });
39
+ </script>
40
+ </body>
41
+ </html>