methestrikerx100 commited on
Commit
12a8054
·
verified ·
1 Parent(s): 3c677d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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
- with gr.Blocks() as demo:
 
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
- demo.launch(share=True, auth_message="Welcome To Mineral Identification App, Please login to use the app.")
 
 
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)