xcurvnubaim
commited on
Commit
·
fb34fd5
1
Parent(s):
0896bb6
chore: remove download model from app.py
Browse files
app.py
CHANGED
@@ -4,10 +4,7 @@ import gradio as gr
|
|
4 |
import tensorflow as tf
|
5 |
from io import StringIO
|
6 |
from PIL import Image
|
7 |
-
import subprocess
|
8 |
|
9 |
-
url = "https://drive.usercontent.google.com/download?id=1T5HGnk9Mxlb5G6FTxp26BWSrTpzbjtP2&export=download&authuser=0"
|
10 |
-
subprocess.run(["curl", "-o", "models.h5", "-L", url])
|
11 |
labels = []
|
12 |
model = load_model('models.h5')
|
13 |
with open("name of the animals.txt") as f:
|
|
|
4 |
import tensorflow as tf
|
5 |
from io import StringIO
|
6 |
from PIL import Image
|
|
|
7 |
|
|
|
|
|
8 |
labels = []
|
9 |
model = load_model('models.h5')
|
10 |
with open("name of the animals.txt") as f:
|