Spaces:
Running
Running
Benjamin Bossan
commited on
Commit
Β·
2e1d656
1
Parent(s):
09c2920
Add PyScript demo
Browse files- README.md +1 -4
- index.html +11 -22
README.md
CHANGED
|
@@ -1,11 +1,8 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 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 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 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>
|