Spaces:
Runtime error
Runtime error
LovnishVerma
commited on
Commit
•
5f57a29
1
Parent(s):
3ab8166
Update app.py
Browse files
app.py
CHANGED
@@ -12,13 +12,6 @@ braintumor_model = load_model('models/brain_tumor_binary.h5')
|
|
12 |
# Configuring Streamlit
|
13 |
st.set_page_config(page_title="Brain Tumor Prediction App", page_icon=":brain:")
|
14 |
|
15 |
-
# Customizing Gradio appearance
|
16 |
-
gr.set_config(
|
17 |
-
display_name=title,
|
18 |
-
interface_color="rgba(255, 99, 71, 0.8)", # Adjust color as needed
|
19 |
-
live=True
|
20 |
-
)
|
21 |
-
|
22 |
# Configuring Gradio
|
23 |
iface = gr.Interface(
|
24 |
fn="predict_braintumor",
|
@@ -26,10 +19,7 @@ iface = gr.Interface(
|
|
26 |
outputs="text",
|
27 |
live=True,
|
28 |
interpretation="default",
|
29 |
-
examples=[["examples/1_no.jpeg"], ["examples/2_no.jpeg"], ["examples/3_no.jpg"], ["examples/Y1.jpg"], ["examples/Y2.jpg"], ["examples/Y3.jpg"]]
|
30 |
-
title=title,
|
31 |
-
description=description,
|
32 |
-
article=article
|
33 |
)
|
34 |
iface.launch()
|
35 |
|
|
|
12 |
# Configuring Streamlit
|
13 |
st.set_page_config(page_title="Brain Tumor Prediction App", page_icon=":brain:")
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
# Configuring Gradio
|
16 |
iface = gr.Interface(
|
17 |
fn="predict_braintumor",
|
|
|
19 |
outputs="text",
|
20 |
live=True,
|
21 |
interpretation="default",
|
22 |
+
examples=[["examples/1_no.jpeg"], ["examples/2_no.jpeg"], ["examples/3_no.jpg"], ["examples/Y1.jpg"], ["examples/Y2.jpg"], ["examples/Y3.jpg"]]
|
|
|
|
|
|
|
23 |
)
|
24 |
iface.launch()
|
25 |
|