prafullcodes commited on
Commit
2f109e0
·
1 Parent(s): b48fb64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -141,9 +141,9 @@ from PIL import Image
141
 
142
  # target_names = ['aca','n', 'scc']
143
 
144
- def greet_user(name):
145
  image=gd.inputs.Image()
146
- pil_image = Image.fromarray(name.astype('uint8'), 'RGB')
147
  pil_image_resized = pil_image.resize((224,224))
148
  img_array = tf.keras.utils.img_to_array(pil_image_resized)
149
  img_array = tf.expand_dims(img_array, 0)
@@ -154,4 +154,5 @@ def greet_user(name):
154
  return image_output_class
155
 
156
  app = gd.Interface(fn = greet_user, inputs='image', outputs='text')
157
- app.launch()
 
 
141
 
142
  # target_names = ['aca','n', 'scc']
143
 
144
+ def greet_user(CTScanImage):
145
  image=gd.inputs.Image()
146
+ pil_image = Image.fromarray(nCTScanImageame.astype('uint8'), 'RGB')
147
  pil_image_resized = pil_image.resize((224,224))
148
  img_array = tf.keras.utils.img_to_array(pil_image_resized)
149
  img_array = tf.expand_dims(img_array, 0)
 
154
  return image_output_class
155
 
156
  app = gd.Interface(fn = greet_user, inputs='image', outputs='text')
157
+ app.launch()
158
+ app.share(title="Lung Cancer Detection", description="Upload your CT Scan Image to know Whether You have cancer or not")