Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
import numpy as np
|
3 |
import tensorflow as tf
|
4 |
-
import cv2
|
5 |
from tensorflow.keras.models import load_model
|
6 |
from tensorflow.keras.preprocessing import image
|
7 |
|
8 |
-
|
9 |
-
|
10 |
MODEL_ISATRON_JEY = 'modelo_isatron_jeysshonl.h5'
|
11 |
|
12 |
cnn_model = load_model(MODEL_ISATRON_JEY)
|
@@ -27,7 +24,6 @@ description = ("El modelo IsaTron es una Red Neuronal Convolucional (CNN) diseñ
|
|
27 |
"ser usadas para ejemplificar el funcionamiento del modelo. "
|
28 |
"https://repositorio.unbosque.edu.co/handle/20.500.12495/9514")
|
29 |
|
30 |
-
enable_queue = True
|
31 |
examples = [
|
32 |
['1normal.jpeg'],
|
33 |
['image1_pneumonia_virus.jpeg'],
|
@@ -47,8 +43,7 @@ interface = gr.Interface(
|
|
47 |
title="Modelo (CNN) IsaTron",
|
48 |
description=description,
|
49 |
article=article,
|
50 |
-
examples=examples
|
51 |
-
enable_queue=enable_queue
|
52 |
)
|
53 |
|
54 |
interface.launch(share=True)
|
|
|
1 |
import gradio as gr
|
2 |
import numpy as np
|
3 |
import tensorflow as tf
|
|
|
4 |
from tensorflow.keras.models import load_model
|
5 |
from tensorflow.keras.preprocessing import image
|
6 |
|
|
|
|
|
7 |
MODEL_ISATRON_JEY = 'modelo_isatron_jeysshonl.h5'
|
8 |
|
9 |
cnn_model = load_model(MODEL_ISATRON_JEY)
|
|
|
24 |
"ser usadas para ejemplificar el funcionamiento del modelo. "
|
25 |
"https://repositorio.unbosque.edu.co/handle/20.500.12495/9514")
|
26 |
|
|
|
27 |
examples = [
|
28 |
['1normal.jpeg'],
|
29 |
['image1_pneumonia_virus.jpeg'],
|
|
|
43 |
title="Modelo (CNN) IsaTron",
|
44 |
description=description,
|
45 |
article=article,
|
46 |
+
examples=examples
|
|
|
47 |
)
|
48 |
|
49 |
interface.launch(share=True)
|