Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,10 @@ import gradio as gr
|
|
2 |
import tensorflow as tf
|
3 |
import numpy as np
|
4 |
|
5 |
-
|
6 |
-
|
|
|
|
|
7 |
def preprocess_image(image):
|
8 |
temp_file = tempfile.NamedTemporaryFile(suffix=".png", delete=False)
|
9 |
temp_file.write(image.read())
|
|
|
2 |
import tensorflow as tf
|
3 |
import numpy as np
|
4 |
|
5 |
+
models = [
|
6 |
+
{"name": "my_model_2.h5", "size": 512},
|
7 |
+
{"name": "my_model.h5", "size": 224},
|
8 |
+
]
|
9 |
def preprocess_image(image):
|
10 |
temp_file = tempfile.NamedTemporaryFile(suffix=".png", delete=False)
|
11 |
temp_file.write(image.read())
|