Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,6 +35,9 @@ def classify_image(input_image):
|
|
| 35 |
# Log da forma da entrada ap贸s o redimensionamento
|
| 36 |
print(f"Forma da entrada ap贸s o redimensionamento: {input_image.shape}")
|
| 37 |
|
|
|
|
|
|
|
|
|
|
| 38 |
# Fa莽a a previs茫o usando o modelo
|
| 39 |
prediction = model.predict(input_image)
|
| 40 |
|
|
@@ -57,7 +60,6 @@ def classify_image(input_image):
|
|
| 57 |
|
| 58 |
return output_image
|
| 59 |
|
| 60 |
-
|
| 61 |
# Crie uma interface Gradio
|
| 62 |
input_interface = gr.Interface(
|
| 63 |
fn=classify_image,
|
|
@@ -67,4 +69,4 @@ input_interface = gr.Interface(
|
|
| 67 |
)
|
| 68 |
|
| 69 |
# Inicie o aplicativo Gradio
|
| 70 |
-
input_interface.launch()
|
|
|
|
| 35 |
# Log da forma da entrada ap贸s o redimensionamento
|
| 36 |
print(f"Forma da entrada ap贸s o redimensionamento: {input_image.shape}")
|
| 37 |
|
| 38 |
+
# Obtenha o tempo atual
|
| 39 |
+
current_time = datetime.datetime.now()
|
| 40 |
+
|
| 41 |
# Fa莽a a previs茫o usando o modelo
|
| 42 |
prediction = model.predict(input_image)
|
| 43 |
|
|
|
|
| 60 |
|
| 61 |
return output_image
|
| 62 |
|
|
|
|
| 63 |
# Crie uma interface Gradio
|
| 64 |
input_interface = gr.Interface(
|
| 65 |
fn=classify_image,
|
|
|
|
| 69 |
)
|
| 70 |
|
| 71 |
# Inicie o aplicativo Gradio
|
| 72 |
+
input_interface.launch()
|