Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -55,13 +55,13 @@ footer {
|
|
55 |
# Gradio Interface setup
|
56 |
with gr.Blocks(css=custom_css) as demo:
|
57 |
gr.HTML("<hr>")
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
|
66 |
# Launch Gradio app
|
67 |
demo.launch()
|
|
|
55 |
# Gradio Interface setup
|
56 |
with gr.Blocks(css=custom_css) as demo:
|
57 |
gr.HTML("<hr>")
|
58 |
+
with gr.Tabs():
|
59 |
+
with gr.TabItem(""):
|
60 |
+
# file_input = gr.File(label="Upload Image (JPG, JPEG, PNG)")
|
61 |
+
file_input = gr.Image(type="filepath")
|
62 |
+
prediction_output = gr.HTML(label="Prediction Result")
|
63 |
+
submit_button = gr.Button("Submit")
|
64 |
+
submit_button.click(classify_breast_cancer_image, inputs=file_input, outputs=prediction_output)
|
65 |
|
66 |
# Launch Gradio app
|
67 |
demo.launch()
|