Srinivasulu kethanaboina commited on
Commit
e449329
·
verified ·
1 Parent(s): 9ae3772

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +8 -46
index.html CHANGED
@@ -4,56 +4,18 @@
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>Gradio Chatbot</title>
7
- <style>
8
- body {
9
- font-family: Arial, sans-serif;
10
- margin: 0;
11
- padding: 0;
12
- }
13
- .container {
14
- display: flex;
15
- flex-direction: column;
16
- align-items: center;
17
- padding: 20px;
18
- }
19
- iframe {
20
- width: 80%;
21
- height: 600px;
22
- border: none;
23
- margin-bottom: 20px;
24
- }
25
- .session-data {
26
- margin-top: 20px;
27
- padding: 10px;
28
- border: 1px solid #ddd;
29
- border-radius: 5px;
30
- width: 80%;
31
- }
32
- </style>
33
  </head>
34
  <body>
35
- <div class="container">
36
- <!-- Embed the Gradio Chatbot -->
37
- <iframe src="https://srinukethanaboina-srunu.hf.space" title="Gradio Chatbot"></iframe>
38
-
39
- <!-- Display Session Data -->
40
- <div class="session-data" id="session-data">
41
- <h2>Session Data:</h2>
42
- <pre id="session-info">Loading session data...</pre>
43
- </div>
44
- </div>
45
-
46
  <script>
47
- // Example JavaScript to handle session data
48
- function getSessionData() {
49
- // This is a placeholder; you would replace this with actual session data retrieval logic
50
- // If you have cookies or localStorage, you might want to read from them
51
- const sessionInfo = localStorage.getItem('chat_session_data') || 'No session data available';
52
- document.getElementById('session-info').textContent = sessionInfo;
53
  }
54
-
55
- // Call the function to display session data
56
- getSessionData();
57
  </script>
58
  </body>
59
  </html>
 
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>Gradio Chatbot</title>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  </head>
8
  <body>
9
+ <h1>Gradio Chatbot</h1>
10
+ <iframe src="https://srinukethanaboina-srunu.hf.space" width="100%" height="600px" style="border:none;"></iframe>
 
 
 
 
 
 
 
 
 
11
  <script>
12
+ // Function to print cookies to the console
13
+ function printCookies() {
14
+ console.log("Cookies:", document.cookie);
 
 
 
15
  }
16
+
17
+ // Call the function to print cookies when the page loads
18
+ window.onload = printCookies;
19
  </script>
20
  </body>
21
  </html>