sreepathi-ravikumar commited on
Commit
b8303a7
·
verified ·
1 Parent(s): ddcea3a

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +68 -19
index.html CHANGED
@@ -1,19 +1,68 @@
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
+ <title>Ask AI - Powered by Puter</title>
6
+ <script src="https://js.puter.com/v2/"></script>
7
+ <script src="script.js" defer></script>
8
+ <style>
9
+ body {
10
+ font-family: Arial, sans-serif;
11
+ background: #f5f7fa;
12
+ padding: 40px;
13
+ text-align: center;
14
+ }
15
+ h1 {
16
+ color: #333;
17
+ }
18
+ #chat-box {
19
+ max-width: 500px;
20
+ margin: 0 auto;
21
+ background: #fff;
22
+ padding: 30px;
23
+ border-radius: 15px;
24
+ box-shadow: 0 4px 20px rgba(0,0,0,0.1);
25
+ }
26
+ input[type="text"] {
27
+ width: 80%;
28
+ padding: 10px;
29
+ font-size: 16px;
30
+ border: 2px solid #ccc;
31
+ border-radius: 10px;
32
+ margin-bottom: 20px;
33
+ }
34
+ button {
35
+ padding: 10px 20px;
36
+ background: #4CAF50;
37
+ color: white;
38
+ border: none;
39
+ border-radius: 10px;
40
+ font-size: 16px;
41
+ cursor: pointer;
42
+ }
43
+ button:hover {
44
+ background: #45a049;
45
+ }
46
+ #response {
47
+ margin-top: 30px;
48
+ padding: 20px;
49
+ background: #e3f2fd;
50
+ border-left: 5px solid #2196F3;
51
+ border-radius: 10px;
52
+ font-size: 17px;
53
+ color: #333;
54
+ text-align: left;
55
+ white-space: pre-line;
56
+ }
57
+ </style>
58
+ </head>
59
+ <body>
60
+ <div id="chat-box">
61
+ <h1>Ask AI Anything</h1>
62
+ <input type="text" id="userInput" placeholder="Type your question here..." />
63
+ <br>
64
+ <button onclick="askAI()">Submit</button>
65
+ <div id="response"></div>
66
+ </div>
67
+ </body>
68
+ </html>