runaksh commited on
Commit
10a5c50
·
verified ·
1 Parent(s): 6bfb22a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -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://antibiotikumnelkul.hu/app/uploads/2019/10/AdobeStock_220059159-1024x683.jpeg)}"
45
 
46
  # Create Gradio interface
47
  iface = gr.Interface(fn=classify_image,
@@ -55,3 +55,11 @@ iface = gr.Interface(fn=classify_image,
55
  # Launch the app
56
  iface.launch()
57
 
 
 
 
 
 
 
 
 
 
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://antibiotikumnelkul.hu/app/uploads/2019/10/AdobeStock_220059159-1024x683.jpeg); background-size: cover;}"
45
 
46
  # Create Gradio interface
47
  iface = gr.Interface(fn=classify_image,
 
55
  # Launch the app
56
  iface.launch()
57
 
58
+ css_code = f"""
59
+ .gradio-container {{
60
+ background-image: url('{background_image_path}');
61
+ background-size: cover; /* Ensure image covers the container */
62
+ background-position: center; /* Center the image */
63
+ /* Add other styling options (e.g., padding, color) */
64
+ }}
65
+ """