JayIsTheLord commited on
Commit
d318c59
1 Parent(s): 83d31f7

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +26 -18
index.html CHANGED
@@ -1,19 +1,27 @@
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
  <html>
2
+ <head>
3
+ <title>gpt</title>
4
+ </head>
5
+
6
+ <body>
7
+
8
+ <script>
9
+ async function query(data) {
10
+ const response = await fetch(
11
+ "https://api-inference.huggingface.co/models/bigcode/octogeex",
12
+ {
13
+ headers: { Authorization: "Bearer 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" },
14
+ method: "POST",
15
+ body: JSON.stringify(data),
16
+ }
17
+ );
18
+ const result = await response.json();
19
+ return result;
20
+ }
21
+
22
+ query({"inputs": "Can you please let us know more details about your "}).then((response) => {
23
+ console.log(JSON.stringify(response));
24
+ });
25
+ </script>
26
+ </body>
27
+ </html>