peterpeter8585 commited on
Commit
b45763e
·
verified ·
1 Parent(s): c31a69d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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.