Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- README.md +3 -3
- __pycache__/app.cpython-311.pyc +0 -0
- requirements.txt +1 -1
- src/demo/space.py +4 -4
- src/frontend/shared/Code.svelte +0 -1
- src/pyproject.toml +2 -2
README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
|
2 |
---
|
3 |
tags: [gradio-custom-component,gradio-template-Code,code,highlighted,completion]
|
4 |
-
title: gradio_highlightedcode V0.0.
|
5 |
-
colorFrom:
|
6 |
-
colorTo:
|
7 |
sdk: docker
|
8 |
pinned: false
|
9 |
license: apache-2.0
|
|
|
1 |
|
2 |
---
|
3 |
tags: [gradio-custom-component,gradio-template-Code,code,highlighted,completion]
|
4 |
+
title: gradio_highlightedcode V0.0.3
|
5 |
+
colorFrom: green
|
6 |
+
colorTo: gray
|
7 |
sdk: docker
|
8 |
pinned: false
|
9 |
license: apache-2.0
|
__pycache__/app.cpython-311.pyc
CHANGED
Binary files a/__pycache__/app.cpython-311.pyc and b/__pycache__/app.cpython-311.pyc differ
|
|
requirements.txt
CHANGED
@@ -1 +1 @@
|
|
1 |
-
gradio_highlightedcode==0.0.
|
|
|
1 |
+
gradio_highlightedcode==0.0.2
|
src/demo/space.py
CHANGED
@@ -46,18 +46,18 @@ from gradio_highlightedcode import HighlightedCode
|
|
46 |
|
47 |
example = HighlightedCode().example_inputs()
|
48 |
|
49 |
-
initial_value = """import random
|
50 |
|
51 |
def scramble_name(name):
|
52 |
name_list = list(name)
|
53 |
-
"""
|
54 |
|
55 |
-
completion = """ random.shuffle(name_list)
|
56 |
return ''.join(name_list)
|
57 |
|
58 |
# Example usage:
|
59 |
print(scramble_name("Python"))
|
60 |
-
"""
|
61 |
|
62 |
def generate_code():
|
63 |
for i in range(len(completion)):
|
|
|
46 |
|
47 |
example = HighlightedCode().example_inputs()
|
48 |
|
49 |
+
initial_value = \"\"\"import random
|
50 |
|
51 |
def scramble_name(name):
|
52 |
name_list = list(name)
|
53 |
+
\"\"\"
|
54 |
|
55 |
+
completion = \"\"\" random.shuffle(name_list)
|
56 |
return ''.join(name_list)
|
57 |
|
58 |
# Example usage:
|
59 |
print(scramble_name("Python"))
|
60 |
+
\"\"\"
|
61 |
|
62 |
def generate_code():
|
63 |
for i in range(len(completion)):
|
src/frontend/shared/Code.svelte
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
<script lang="ts">
|
2 |
import { createEventDispatcher, onMount } from "svelte";
|
3 |
import {
|
4 |
-
Decoration,
|
5 |
EditorView,
|
6 |
ViewUpdate,
|
7 |
keymap,
|
|
|
1 |
<script lang="ts">
|
2 |
import { createEventDispatcher, onMount } from "svelte";
|
3 |
import {
|
|
|
4 |
EditorView,
|
5 |
ViewUpdate,
|
6 |
keymap,
|
src/pyproject.toml
CHANGED
@@ -8,7 +8,7 @@ build-backend = "hatchling.build"
|
|
8 |
|
9 |
[project]
|
10 |
name = "gradio_highlightedcode"
|
11 |
-
version = "0.0.
|
12 |
description = "A variant of the Code component that supports highlighting lines of code."
|
13 |
readme = "README.md"
|
14 |
license = "MIT"
|
@@ -36,7 +36,7 @@ classifiers = [
|
|
36 |
dev = ["build", "twine"]
|
37 |
|
38 |
[tool.hatch.build]
|
39 |
-
artifacts = ["/backend/gradio_highlightedcode/templates", "*.pyi", "backend/gradio_highlightedcode/templates", "backend/gradio_highlightedcode/templates"]
|
40 |
|
41 |
[tool.hatch.build.targets.wheel]
|
42 |
packages = ["/backend/gradio_highlightedcode"]
|
|
|
8 |
|
9 |
[project]
|
10 |
name = "gradio_highlightedcode"
|
11 |
+
version = "0.0.3"
|
12 |
description = "A variant of the Code component that supports highlighting lines of code."
|
13 |
readme = "README.md"
|
14 |
license = "MIT"
|
|
|
36 |
dev = ["build", "twine"]
|
37 |
|
38 |
[tool.hatch.build]
|
39 |
+
artifacts = ["/backend/gradio_highlightedcode/templates", "*.pyi", "backend/gradio_highlightedcode/templates", "backend/gradio_highlightedcode/templates", "backend/gradio_highlightedcode/templates"]
|
40 |
|
41 |
[tool.hatch.build.targets.wheel]
|
42 |
packages = ["/backend/gradio_highlightedcode"]
|