prafullcodes commited on
Commit
eed38cb
·
1 Parent(s): 46b57cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -143,7 +143,7 @@ from PIL import Image
143
  def predictOutPut(image_class):
144
  output=''
145
  if(image_class=='aca'):
146
- output="You have Adenocarcinoma type cancer. Try to stay away from Smokers and concer to the doctor as your 40% of lungs are damaged"
147
  return output
148
 
149
  def greet_user(CTScanImage):
@@ -157,6 +157,6 @@ def greet_user(CTScanImage):
157
  predi=lr.predict(img_array)
158
  image_output_class=target_names[np.argmax(predi)]
159
  return predictOutPut(image_output_class)
160
- customOutput=gd.outputs.Text(label="Your CT scan Report")
161
  app = gd.Interface(fn = greet_user, inputs=gd.inputs.Image(label="Upload You CT Scanned Image"), outputs=customOutput,title="Lung Cancer Detection", description="Upload your CT Scan Image to know Whether You have cancer or not")
162
  app.launch()
 
143
  def predictOutPut(image_class):
144
  output=''
145
  if(image_class=='aca'):
146
+ output="<h1>You have Adenocarcinoma type cancer. Try to stay away from Smokers and concer to the doctor as your 40% of lungs are damaged</h1>"
147
  return output
148
 
149
  def greet_user(CTScanImage):
 
157
  predi=lr.predict(img_array)
158
  image_output_class=target_names[np.argmax(predi)]
159
  return predictOutPut(image_output_class)
160
+ customOutput=gd.outputs.HTML(label="Your CT scan Report")
161
  app = gd.Interface(fn = greet_user, inputs=gd.inputs.Image(label="Upload You CT Scanned Image"), outputs=customOutput,title="Lung Cancer Detection", description="Upload your CT Scan Image to know Whether You have cancer or not")
162
  app.launch()