Spaces:
Runtime error
Runtime error
Commit
·
9918625
1
Parent(s):
cc8c26c
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,9 @@ import gradio as gr
|
|
2 |
import tensorflow as tf
|
3 |
import gdown
|
4 |
from PIL import Image
|
|
|
|
|
|
|
5 |
|
6 |
input_shape = (32, 32, 3)
|
7 |
resized_shape = (299, 299, 3)
|
@@ -19,6 +22,20 @@ labels = {
|
|
19 |
9: "truck",
|
20 |
}
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
# Download the model file
|
23 |
def download_model():
|
24 |
url = "https://drive.google.com/uc?id=1zUGAPg9RVgo7bWtf_-L9MXoXKldZjs1y"
|
|
|
2 |
import tensorflow as tf
|
3 |
import gdown
|
4 |
from PIL import Image
|
5 |
+
import keras_nlp
|
6 |
+
from tensorflow import keras
|
7 |
+
import time
|
8 |
|
9 |
input_shape = (32, 32, 3)
|
10 |
resized_shape = (299, 299, 3)
|
|
|
22 |
9: "truck",
|
23 |
}
|
24 |
|
25 |
+
# Download the NLP model
|
26 |
+
def download_model_NLP():
|
27 |
+
pass
|
28 |
+
|
29 |
+
|
30 |
+
#url = "https://drive.google.com/uc?id=1zUGAPg9RVgo7bWtf_-L9MXoXKldZjs1y"
|
31 |
+
#output = "CIFAR10_Xception_(ACC_0.9704__LOSS_0.0335_).h5"
|
32 |
+
#gdown.download(url, output, quiet=False)
|
33 |
+
#return output
|
34 |
+
|
35 |
+
|
36 |
+
|
37 |
+
|
38 |
+
|
39 |
# Download the model file
|
40 |
def download_model():
|
41 |
url = "https://drive.google.com/uc?id=1zUGAPg9RVgo7bWtf_-L9MXoXKldZjs1y"
|