Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
import gradio as gr
|
3 |
import spaces
|
4 |
|
5 |
-
|
6 |
def terminal_emulator(command):
|
7 |
import subprocess
|
8 |
process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE)
|
|
|
2 |
import gradio as gr
|
3 |
import spaces
|
4 |
|
5 |
+
@spaces.GPU
|
6 |
def terminal_emulator(command):
|
7 |
import subprocess
|
8 |
process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE)
|