prafullcodes commited on
Commit
77136fb
·
1 Parent(s): 3f233f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -84,7 +84,7 @@ model.summary()
84
  model.compile(loss = 'categorical_crossentropy', optimizer = 'adam', metrics = ['accuracy'])
85
 
86
  #executing the model
87
- history = model.fit(train_set, validation_data = (validate_set), epochs = 5, verbose = 1)
88
 
89
  # plotting the loss
90
  plt.plot(history.history['loss'],label = 'train_loss')
@@ -140,6 +140,7 @@ import gradio as gd
140
  from PIL import Image
141
 
142
  css_class="""
 
143
  ul>li{
144
  text-decoration: none;
145
  list-style:none;
@@ -221,5 +222,5 @@ def greet_user(CTScanImage):
221
 
222
  customInput=gd.inputs.Image(label="Upload You CT Scanned Image")
223
  customOutput=gd.outputs.HTML(label="Your CT scan Report")
224
- app = gd.Interface(fn = greet_user, inputs=customInput, outputs=customOutput,title="Lung Cancer Detection", description="Upload your CT Scan Image to know Whether You have cancer or not",css="body{ background-color:rgb(10, 30, 75)}")
225
- app.launch(interface="unified")
 
84
  model.compile(loss = 'categorical_crossentropy', optimizer = 'adam', metrics = ['accuracy'])
85
 
86
  #executing the model
87
+ history = model.fit(train_set, validation_data = (validate_set), epochs = 8, verbose = 1)
88
 
89
  # plotting the loss
90
  plt.plot(history.history['loss'],label = 'train_loss')
 
140
  from PIL import Image
141
 
142
  css_class="""
143
+ body{ background-color:rgb(10, 30, 75)}
144
  ul>li{
145
  text-decoration: none;
146
  list-style:none;
 
222
 
223
  customInput=gd.inputs.Image(label="Upload You CT Scanned Image")
224
  customOutput=gd.outputs.HTML(label="Your CT scan Report")
225
+ app = gd.Interface(fn = greet_user, inputs=customInput, outputs=customOutput,title="Lung Cancer Detection", description="Upload your CT Scan Image to know Whether You have cancer or not",css=css_class)
226
+ app.launch()