Spaces:
Runtime error
Runtime error
Commit
·
9494f28
1
Parent(s):
c49ded2
...
Browse files
app.py
CHANGED
|
@@ -10,18 +10,21 @@ dotnet_install_commands = [
|
|
| 10 |
"./dotnet-install.sh --version latest"
|
| 11 |
]
|
| 12 |
|
| 13 |
-
print(os.environ["PATH"])
|
| 14 |
-
|
| 15 |
try:
|
| 16 |
print(subprocess.check_output("dotnet -list-sdk"))
|
| 17 |
except:
|
|
|
|
|
|
|
| 18 |
print("Try to install .net dependency")
|
| 19 |
|
| 20 |
for command in dotnet_install_commands:
|
| 21 |
os.system(command)
|
| 22 |
|
|
|
|
|
|
|
| 23 |
print(os.environ["PATH"])
|
| 24 |
|
|
|
|
| 25 |
# print(subprocess.check_output("dotnet -list-sdk"))
|
| 26 |
|
| 27 |
import gradio as gr
|
|
|
|
| 10 |
"./dotnet-install.sh --version latest"
|
| 11 |
]
|
| 12 |
|
|
|
|
|
|
|
| 13 |
try:
|
| 14 |
print(subprocess.check_output("dotnet -list-sdk"))
|
| 15 |
except:
|
| 16 |
+
print(os.environ["PATH"])
|
| 17 |
+
|
| 18 |
print("Try to install .net dependency")
|
| 19 |
|
| 20 |
for command in dotnet_install_commands:
|
| 21 |
os.system(command)
|
| 22 |
|
| 23 |
+
os.environ["PATH"] += os.pathsep + "/home/user/.dotnet"
|
| 24 |
+
|
| 25 |
print(os.environ["PATH"])
|
| 26 |
|
| 27 |
+
os.system("dotnet -list-sdk")
|
| 28 |
# print(subprocess.check_output("dotnet -list-sdk"))
|
| 29 |
|
| 30 |
import gradio as gr
|