runaksh commited on
Commit
d71bba9
·
verified ·
1 Parent(s): 22caeae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -40,13 +40,20 @@ def classify_image(image):
40
  title = "Classification Demo"
41
  description = "XRay classification"
42
 
 
 
 
 
 
 
43
  # Create Gradio interface
44
  iface = gr.Interface(fn=classify_image,
45
  inputs=gr.Image(), # Accepts image of any size
46
  outputs=gr.Label(),
47
  title=title,
48
  description=description,
49
- css=".gradio-container {background-image: url('https://www.bing.com/images/search?view=detailV2&ccid=ltop6MR8&id=5789472A3B2B302E20E92379352197CD6637BA84&thid=OIP.ltop6MR8st61NhZxYCXB2AHaFj&mediaurl=https%3A%2F%2Fcdn.siasat.com%2Fwp-content%2Fuploads%2F2020%2F07%2Flungs.jpg&exph=900&expw=1200&q=lungs+related+disease+images&simid=607993135989994625&form=IRPRST&ck=9668E8830C61992F33E96AEC24942295&selectedindex=17&itb=0&ajaxhist=0&ajaxserp=0&vt=0&sim=11');}") as demo:)
 
50
 
51
  # Launch the app
52
- iface.launch()
 
40
  title = "Classification Demo"
41
  description = "XRay classification"
42
 
43
+ css_code = """
44
+ .gradio-container {
45
+ background-color: lightblue; /* Change to your desired color */
46
+ }
47
+ """
48
+
49
  # Create Gradio interface
50
  iface = gr.Interface(fn=classify_image,
51
  inputs=gr.Image(), # Accepts image of any size
52
  outputs=gr.Label(),
53
  title=title,
54
  description=description,
55
+ css=css_code
56
+ )
57
 
58
  # Launch the app
59
+ iface.launch()