Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -77,8 +77,7 @@ class ImageClassifierCataract:
|
|
77 |
# Combine the output elements
|
78 |
output = {
|
79 |
"image": output_image,
|
80 |
-
"text": predicted_class,
|
81 |
-
"text_1": current_time.strftime('%Y-%m-%d %H:%M:%S'),
|
82 |
"html": info_html,
|
83 |
}
|
84 |
|
@@ -88,7 +87,7 @@ class ImageClassifierCataract:
|
|
88 |
input_interface = gr.Interface(
|
89 |
fn=self.classify_image,
|
90 |
inputs="image",
|
91 |
-
outputs=["image", "text", "
|
92 |
live=True
|
93 |
)
|
94 |
input_interface.launch()
|
|
|
77 |
# Combine the output elements
|
78 |
output = {
|
79 |
"image": output_image,
|
80 |
+
"text": f"Predicted Class: {predicted_class}",
|
|
|
81 |
"html": info_html,
|
82 |
}
|
83 |
|
|
|
87 |
input_interface = gr.Interface(
|
88 |
fn=self.classify_image,
|
89 |
inputs="image",
|
90 |
+
outputs=["image", "text", "html"],
|
91 |
live=True
|
92 |
)
|
93 |
input_interface.launch()
|