Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from io import StringIO
|
| 3 |
import sys
|
| 4 |
-
|
|
|
|
| 5 |
def execute_code(code: str) -> str:
|
| 6 |
"""
|
| 7 |
Execute Python code and return the output or error message.
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from io import StringIO
|
| 3 |
import sys
|
| 4 |
+
import spaces
|
| 5 |
+
@spaces.GPU
|
| 6 |
def execute_code(code: str) -> str:
|
| 7 |
"""
|
| 8 |
Execute Python code and return the output or error message.
|