Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def predict_image(input_img):
|
|
14 |
|
15 |
image_gradio_app = gr.Interface(
|
16 |
fn=predict_image,
|
17 |
-
inputs=gr.Image(sources=['upload', 'webcam'], type="pil"),
|
18 |
outputs=[gr.Label(label="Result")],
|
19 |
title="Green Greta",
|
20 |
theme=theme
|
@@ -36,6 +36,6 @@ chatbot_gradio_app = gr.ChatInterface(
|
|
36 |
# Combine both interfaces into a single app
|
37 |
gr.TabbedInterface(
|
38 |
[image_gradio_app, chatbot_gradio_app],
|
39 |
-
tab_names=["Greta Image","Greta Chat"],
|
40 |
theme=theme
|
41 |
).launch()
|
|
|
14 |
|
15 |
image_gradio_app = gr.Interface(
|
16 |
fn=predict_image,
|
17 |
+
inputs=gr.Image(label="Image", sources=['upload', 'webcam'], type="pil"),
|
18 |
outputs=[gr.Label(label="Result")],
|
19 |
title="Green Greta",
|
20 |
theme=theme
|
|
|
36 |
# Combine both interfaces into a single app
|
37 |
gr.TabbedInterface(
|
38 |
[image_gradio_app, chatbot_gradio_app],
|
39 |
+
tab_names=["Greta Image Classification","Greta Chat"],
|
40 |
theme=theme
|
41 |
).launch()
|