Spaces:
Runtime error
Runtime error
Commit
·
b3b9b76
1
Parent(s):
0551767
Update app.py
Browse filesEnable code runner
app.py
CHANGED
@@ -110,7 +110,7 @@ for i in range(3):
|
|
110 |
code_2 = """
|
111 |
!pip install python-pptx
|
112 |
"""
|
113 |
-
|
114 |
def Code_Runner(code_raw: str, lang: str='python'):
|
115 |
# interpreter = CodeInterpreter(language="python", debug_mode=True)
|
116 |
if '!pip' in code_raw:
|
@@ -143,7 +143,7 @@ async def TestCodeInterpret(CustomMessage:str):
|
|
143 |
|
144 |
# terminate the session
|
145 |
session.stop()
|
146 |
-
|
147 |
|
148 |
ds = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")
|
149 |
sample = ds[0]["audio"]
|
|
|
110 |
code_2 = """
|
111 |
!pip install python-pptx
|
112 |
"""
|
113 |
+
|
114 |
def Code_Runner(code_raw: str, lang: str='python'):
|
115 |
# interpreter = CodeInterpreter(language="python", debug_mode=True)
|
116 |
if '!pip' in code_raw:
|
|
|
143 |
|
144 |
# terminate the session
|
145 |
session.stop()
|
146 |
+
|
147 |
|
148 |
ds = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")
|
149 |
sample = ds[0]["audio"]
|