raja5259 commited on
Commit
381c7f9
·
verified ·
1 Parent(s): 98e12ff

update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -84,7 +84,10 @@ def inference(DoYouWantToShowGradCAMMedImages, HowManyImages, WhichLayer, transp
84
  gradCAM_demo = gr.Interface(
85
  fn=inference,
86
  #DoYouWantToShowGradCAMMedImages, HowManyImages, WhichLayer, transparency
87
- inputs=['text', label = "Do You Want To Show GradCAMMed Images ?", gr.Slider(0, 20, step=5), gr.Slider(-3, -1, value = -1, step=1), gr.Slider(0, 1, value = 0.7, label = "Overall Opacity of the Overlay")],
 
 
 
88
  outputs=['image'],
89
  title="GradCammd Images",
90
  description="If your answer to the question DoYouWantToShowGradCAMMedImages is yes, then only it works.",
 
84
  gradCAM_demo = gr.Interface(
85
  fn=inference,
86
  #DoYouWantToShowGradCAMMedImages, HowManyImages, WhichLayer, transparency
87
+
88
+ inputs=[ gr.Textbox(label="Do You Want To Show GradCAMMed Images ?", info="Initial text", lines=1),
89
+ gr.Slider(0, 20, step=5), gr.Slider(-3, -1, value = -1, step=1),
90
+ gr.Slider(0, 1, value = 0.7, label = "Overall Opacity of the Overlay")],
91
  outputs=['image'],
92
  title="GradCammd Images",
93
  description="If your answer to the question DoYouWantToShowGradCAMMedImages is yes, then only it works.",