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