Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def classify_image(image):
|
|
32 |
# Convert the index to the model's class label
|
33 |
label_pneumonia = index_to_label_pneumonia.get(predicted_class_idx_pneumonia, "Unknown Label")
|
34 |
label_tuberculosis = index_to_label_tuberculosis.get(predicted_class_idx_tuberculosis, "Unknown Label")
|
35 |
-
label = label_pneumonia+"
|
36 |
|
37 |
return label
|
38 |
|
@@ -41,7 +41,7 @@ def classify_image(image):
|
|
41 |
title = "Automated Classification of Pneumonia and Tuberculosis using Machine Learning"
|
42 |
description = "Upload your lungs Radiograph to find out if you are having Pneumonia or Tuberculosis"
|
43 |
|
44 |
-
css_code = ".gradio-container {background: url(https://
|
45 |
|
46 |
# Create Gradio interface
|
47 |
iface = gr.Interface(fn=classify_image,
|
|
|
32 |
# Convert the index to the model's class label
|
33 |
label_pneumonia = index_to_label_pneumonia.get(predicted_class_idx_pneumonia, "Unknown Label")
|
34 |
label_tuberculosis = index_to_label_tuberculosis.get(predicted_class_idx_tuberculosis, "Unknown Label")
|
35 |
+
label = label_pneumonia+".................."+label_tuberculosis
|
36 |
|
37 |
return label
|
38 |
|
|
|
41 |
title = "Automated Classification of Pneumonia and Tuberculosis using Machine Learning"
|
42 |
description = "Upload your lungs Radiograph to find out if you are having Pneumonia or Tuberculosis"
|
43 |
|
44 |
+
css_code = ".gradio-container {background: url(https://en.bcdn.biz/Images/2017/8/2/aa1c42db-86d0-446b-9090-7c7544a8680e.jpg); background-size: cover;}"
|
45 |
|
46 |
# Create Gradio interface
|
47 |
iface = gr.Interface(fn=classify_image,
|