Spaces:
Build error
Build error
freemt
commited on
Commit
·
eff335b
1
Parent(s):
33d3a46
Add python -V
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def process(command) -> Tuple[str, Optional[str]]:
|
|
| 41 |
logger.info("input: %s", command)
|
| 42 |
|
| 43 |
try:
|
| 44 |
-
command = str(
|
| 45 |
except Exception as e:
|
| 46 |
_ = str(e)
|
| 47 |
return _, None
|
|
@@ -147,6 +147,7 @@ iface = gr.Interface(
|
|
| 147 |
examples=[
|
| 148 |
"python -m site",
|
| 149 |
"""python -c "import gradio; print(gradio.__version__")""",
|
|
|
|
| 150 |
"cat /proc/version",
|
| 151 |
"free # show free memory",
|
| 152 |
"uname -m",
|
|
|
|
| 41 |
logger.info("input: %s", command)
|
| 42 |
|
| 43 |
try:
|
| 44 |
+
command = str(command).strip()
|
| 45 |
except Exception as e:
|
| 46 |
_ = str(e)
|
| 47 |
return _, None
|
|
|
|
| 147 |
examples=[
|
| 148 |
"python -m site",
|
| 149 |
"""python -c "import gradio; print(gradio.__version__")""",
|
| 150 |
+
"python -V ",
|
| 151 |
"cat /proc/version",
|
| 152 |
"free # show free memory",
|
| 153 |
"uname -m",
|