Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ def predict_image(input):
|
|
66 |
|
67 |
image_gradio_app = gr.Interface(
|
68 |
fn=predict_image,
|
69 |
-
inputs=gr.Image(label="
|
70 |
outputs=[gr.Label(label="Clasificación")],
|
71 |
title=custom_title,
|
72 |
description="Carga una foto del objeto que quieras reciclar y Green Greta identificará de qué se trata para que puedas desecharlo adecuadamente.",
|
@@ -172,7 +172,7 @@ def chat_interface(question,history):
|
|
172 |
chatbot_gradio_app = gr.ChatInterface(
|
173 |
fn=chat_interface,
|
174 |
chatbot=gr.Chatbot(height=400),
|
175 |
-
textbox=gr.Textbox(placeholder="
|
176 |
title=custom_title,
|
177 |
description="Green Greta ChatBot está aquí para responder todas tus preguntas y ayudarte a tomar decisiones más informadas sobre tu reciclaje.",
|
178 |
examples=["Hola, ¿cuál es tu nombre?", "¿Qué puedo hacer con ropa que ya no uso?", "¿Qué recursos educativos existen para aprender mas sobre sostenibilidad?"],
|
|
|
66 |
|
67 |
image_gradio_app = gr.Interface(
|
68 |
fn=predict_image,
|
69 |
+
inputs=gr.Image(label="Imagen", sources=['upload', 'webcam'], type="pil"),
|
70 |
outputs=[gr.Label(label="Clasificación")],
|
71 |
title=custom_title,
|
72 |
description="Carga una foto del objeto que quieras reciclar y Green Greta identificará de qué se trata para que puedas desecharlo adecuadamente.",
|
|
|
172 |
chatbot_gradio_app = gr.ChatInterface(
|
173 |
fn=chat_interface,
|
174 |
chatbot=gr.Chatbot(height=400),
|
175 |
+
textbox=gr.Textbox(placeholder="Házme una pregunta sobre reciclaje...", scale=7),
|
176 |
title=custom_title,
|
177 |
description="Green Greta ChatBot está aquí para responder todas tus preguntas y ayudarte a tomar decisiones más informadas sobre tu reciclaje.",
|
178 |
examples=["Hola, ¿cuál es tu nombre?", "¿Qué puedo hacer con ropa que ya no uso?", "¿Qué recursos educativos existen para aprender mas sobre sostenibilidad?"],
|