Benjamin Bossan commited on
Commit
2e1d656
β€’
1 Parent(s): 09c2920

Add PyScript demo

Browse files
Files changed (2) hide show
  1. README.md +1 -4
  2. index.html +11 -22
README.md CHANGED
@@ -1,11 +1,8 @@
1
  ---
2
- title: Pyscript Demo
3
- emoji: πŸ“š
4
  colorFrom: indigo
5
  colorTo: pink
6
  sdk: static
7
  pinned: false
8
  license: bsd-3-clause
9
  ---
10
-
11
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ emoji: 🐍
 
3
  colorFrom: indigo
4
  colorTo: pink
5
  sdk: static
6
  pinned: false
7
  license: bsd-3-clause
8
  ---
 
 
index.html CHANGED
@@ -1,24 +1,13 @@
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>
13
- You can modify this app directly by editing <i>index.html</i> in the
14
- Files and versions tab.
15
- </p>
16
- <p>
17
- Also don't forget to check the
18
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank"
19
- >Spaces documentation</a
20
- >.
21
- </p>
22
- </div>
23
- </body>
24
  </html>
 
1
  <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
6
+ <script defer src="https://pyscript.net/alpha/pyscript.js"></script>
7
+ <title>PyScript Test</title>
8
+ </head>
9
+ <body>
10
+ <py-script> print('Hello!\nPress Shift+Enter to execute code') </py-script>
11
+ <py-repl auto-generate="true"></py-repl>
12
+ </body>
 
 
 
 
 
 
 
 
 
 
 
13
  </html>