SahithiR commited on
Commit
91f2313
·
1 Parent(s): e5a1828

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -49,7 +49,7 @@ def inference(input_img, transparency = 0.1, num = 10,target_layer=model.network
49
 
50
  title = "CIFAR10 trained on CUSTOMRESNET Model with GradCAM"
51
  description = "A simple Gradio interface to infer on CUSTOMRESNET model, and get input dataset, misclassified images,GradCAM results"
52
- examples = [["cat.jpg", 0.1, -1], ["dog.jpg", 0.1, -1], ["automobile.jpg", 0.1, -1], ["bird.jpg", 0.1, -1], ["deer.jpg", 0.1, -1], ["bird.jpg", 0.1, -1], ["ship.jpg", 0.1, -1], ["frog.jpg", 0.1, -1], ["car.jpg", 0.1, -1], ["plane.jpg", 0.1, -1] ]
53
  demo = gr.Interface(
54
  inference,
55
  inputs = [gr.Image(shape=(32, 32), label="Input Image"), gr.Slider(0, 1, value = 0.5, label="Opacity of GradCAM")],# (fn=dropdown_list, inputs="dropdown", inputs_args={"x": gr.inputs.Dropdown(options)},label="Layer")],
@@ -57,5 +57,5 @@ demo = gr.Interface(
57
  title = title,
58
  description = description,
59
  examples = examples,
60
- )gr.Interface
61
  demo.launch()
 
49
 
50
  title = "CIFAR10 trained on CUSTOMRESNET Model with GradCAM"
51
  description = "A simple Gradio interface to infer on CUSTOMRESNET model, and get input dataset, misclassified images,GradCAM results"
52
+ examples = [["cat.jpg", 0.1, -1], ["dog.jpg", 0.1, -1],]# ["automobile.jpg", 0.1, -1], ["bird.jpg", 0.1, -1], ["deer.jpg", 0.1, -1], ["bird.jpg", 0.1, -1], ["ship.jpg", 0.1, -1], ["frog.jpg", 0.1, -1], ["car.jpg", 0.1, -1], ["plane.jpg", 0.1, -1] ]
53
  demo = gr.Interface(
54
  inference,
55
  inputs = [gr.Image(shape=(32, 32), label="Input Image"), gr.Slider(0, 1, value = 0.5, label="Opacity of GradCAM")],# (fn=dropdown_list, inputs="dropdown", inputs_args={"x": gr.inputs.Dropdown(options)},label="Layer")],
 
57
  title = title,
58
  description = description,
59
  examples = examples,
60
+ gr.Interface
61
  demo.launch()