Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ from tensorflow import keras
|
|
45 |
from PIL import Image
|
46 |
|
47 |
# Cell 1: Image Classification Model
|
48 |
-
model1 = from_pretrained_keras("rocioadlc/
|
49 |
|
50 |
class_labels = ['battery',
|
51 |
'biological',
|
@@ -176,15 +176,16 @@ image_gradio_app = gr.Interface(
|
|
176 |
fn=predict_image,
|
177 |
inputs=gr.Image(label="Image", sources=['upload', 'webcam'], type="pil"),
|
178 |
outputs=[gr.Label(label="Result")],
|
179 |
-
title="<span style='color:
|
180 |
theme=theme
|
181 |
)
|
182 |
|
183 |
chatbot_gradio_app = gr.ChatInterface(
|
184 |
fn=chat_interface,
|
185 |
-
title="<span style='color:
|
186 |
)
|
187 |
|
|
|
188 |
banner_tab_content = """
|
189 |
<div style="background-color: #d3e3c3; text-align: center; padding: 20px; display: flex; flex-direction: column; align-items: center;">
|
190 |
<img src="https://huggingface.co/spaces/rocioadlc/test_4/resolve/main/front_4.jpg" alt="Banner Image" style="width: 50%; max-width: 500px; margin: 0 auto;">
|
|
|
45 |
from PIL import Image
|
46 |
|
47 |
# Cell 1: Image Classification Model
|
48 |
+
model1 = from_pretrained_keras("rocioadlc/EfficientNetV2L_2")
|
49 |
|
50 |
class_labels = ['battery',
|
51 |
'biological',
|
|
|
176 |
fn=predict_image,
|
177 |
inputs=gr.Image(label="Image", sources=['upload', 'webcam'], type="pil"),
|
178 |
outputs=[gr.Label(label="Result")],
|
179 |
+
title="<span style='color: green;'>Green Greta</span>",
|
180 |
theme=theme
|
181 |
)
|
182 |
|
183 |
chatbot_gradio_app = gr.ChatInterface(
|
184 |
fn=chat_interface,
|
185 |
+
title="<span style='color: green;'>Green Greta</span>"
|
186 |
)
|
187 |
|
188 |
+
|
189 |
banner_tab_content = """
|
190 |
<div style="background-color: #d3e3c3; text-align: center; padding: 20px; display: flex; flex-direction: column; align-items: center;">
|
191 |
<img src="https://huggingface.co/spaces/rocioadlc/test_4/resolve/main/front_4.jpg" alt="Banner Image" style="width: 50%; max-width: 500px; margin: 0 auto;">
|