Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,8 @@ def classify_image(image):
|
|
81 |
return predicted_class_name, predicted_scores
|
82 |
|
83 |
# Create the Gradio interface
|
84 |
-
|
|
|
85 |
with gr.Row():
|
86 |
image_input = gr.Image(elem_id="image_input", type="pil")
|
87 |
output_components = [
|
@@ -91,4 +92,5 @@ with gr.Blocks() as demo:
|
|
91 |
image_button = gr.Button("Classify Mineral")
|
92 |
image_button.click(classify_image, inputs=image_input, outputs=output_components)
|
93 |
|
94 |
-
|
|
|
|
81 |
return predicted_class_name, predicted_scores
|
82 |
|
83 |
# Create the Gradio interface
|
84 |
+
# Create the Gradio interface
|
85 |
+
with gr.Blocks(theme=gr.themes.Monochrome()) as demo:
|
86 |
with gr.Row():
|
87 |
image_input = gr.Image(elem_id="image_input", type="pil")
|
88 |
output_components = [
|
|
|
92 |
image_button = gr.Button("Classify Mineral")
|
93 |
image_button.click(classify_image, inputs=image_input, outputs=output_components)
|
94 |
|
95 |
+
|
96 |
+
demo.launch(share=True)
|