Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -86,14 +86,6 @@ def predict_image(input):
|
|
86 |
return {predicted_class_label: confidence_score}
|
87 |
|
88 |
|
89 |
-
image_gradio_app = gr.Interface(
|
90 |
-
fn=predict_image,
|
91 |
-
inputs=gr.Image(label="Image", sources=['upload', 'webcam'], type="pil"),
|
92 |
-
outputs=[gr.Label(label="Result")],
|
93 |
-
title=custom_title,
|
94 |
-
theme=theme
|
95 |
-
)
|
96 |
-
|
97 |
loader = WebBaseLoader(["https://www.epa.gov/recycle/frequent-questions-recycling", "https://www.whitehorsedc.gov.uk/vale-of-white-horse-district-council/recycling-rubbish-and-waste/lets-get-real-about-recycling/", "https://www.teimas.com/blog/13-preguntas-y-respuestas-sobre-la-ley-de-residuos-07-2022", "https://www.molok.com/es/blog/gestion-de-residuos-solidos-urbanos-rsu-10-dudas-comunes"])
|
98 |
data=loader.load()
|
99 |
# split documents
|
@@ -186,6 +178,15 @@ def chat_interface(question,history):
|
|
186 |
return answer_value
|
187 |
|
188 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
chatbot_gradio_app = gr.ChatInterface(
|
190 |
fn=chat_interface,
|
191 |
title=custom_title
|
|
|
86 |
return {predicted_class_label: confidence_score}
|
87 |
|
88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
loader = WebBaseLoader(["https://www.epa.gov/recycle/frequent-questions-recycling", "https://www.whitehorsedc.gov.uk/vale-of-white-horse-district-council/recycling-rubbish-and-waste/lets-get-real-about-recycling/", "https://www.teimas.com/blog/13-preguntas-y-respuestas-sobre-la-ley-de-residuos-07-2022", "https://www.molok.com/es/blog/gestion-de-residuos-solidos-urbanos-rsu-10-dudas-comunes"])
|
90 |
data=loader.load()
|
91 |
# split documents
|
|
|
178 |
return answer_value
|
179 |
|
180 |
|
181 |
+
|
182 |
+
image_gradio_app = gr.Interface(
|
183 |
+
fn=predict_image,
|
184 |
+
inputs=gr.Image(label="Image", sources=['upload', 'webcam'], type="pil"),
|
185 |
+
outputs=[gr.Label(label="Result")],
|
186 |
+
title=custom_title,
|
187 |
+
theme=theme
|
188 |
+
)
|
189 |
+
|
190 |
chatbot_gradio_app = gr.ChatInterface(
|
191 |
fn=chat_interface,
|
192 |
title=custom_title
|