Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,9 @@
|
|
1 |
import os
|
2 |
print("Upgrade and Install...")
|
3 |
-
os.system('pip install tensorflow numpy gradio keras')
|
4 |
-
os.system('pip install --upgrade tensorflow numpy gradio keras nvidia-cuda-toolkit libcudnn8')
|
5 |
os.system('rm -rf ~/.keras ~/.cache')
|
6 |
-
|
7 |
-
os.system('sudo apt-get install nvidia-cuda-toolkit libcudnn8')
|
8 |
-
os.system('pip show tensorflow keras')
|
9 |
import tensorflow as tf
|
10 |
from tensorflow import keras
|
11 |
import numpy as np
|
|
|
1 |
import os
|
2 |
print("Upgrade and Install...")
|
3 |
+
os.system('pip install tensorflow numpy gradio keras tensorflow-cpu')
|
4 |
+
os.system('pip install --upgrade tensorflow numpy gradio keras nvidia-cuda-toolkit libcudnn8 tensorflow-cpu')
|
5 |
os.system('rm -rf ~/.keras ~/.cache')
|
6 |
+
|
|
|
|
|
7 |
import tensorflow as tf
|
8 |
from tensorflow import keras
|
9 |
import numpy as np
|