Spaces:
Runtime error
Runtime error
Update space.py
Browse files
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)):
|