jpterry commited on
Commit
0f7de41
·
1 Parent(s): f5d2261

testing speed without input image output

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -150,7 +150,7 @@ def predict_and_analyze(model_name, num_channels, dim, image):
150
 
151
  print("Sending to Hugging Face")
152
 
153
- return output, input_pil_image, fig
154
 
155
 
156
  if __name__ == "__main__":
@@ -171,7 +171,7 @@ if __name__ == "__main__":
171
  show_label=True),
172
  gr.File(label="Input Data", show_label=True)],
173
  outputs=[gr.Textbox(lines=1, label="Prediction", show_label=True),
174
- gr.Image(label="Input Image", show_label=True),
175
  # gr.Image(label="Activation 1", show_label=True),
176
  # gr.Image(label="Actication 2", show_label=True)],
177
  gr.Plot(label="Activations", show_label=True)
 
150
 
151
  print("Sending to Hugging Face")
152
 
153
+ return output, fig
154
 
155
 
156
  if __name__ == "__main__":
 
171
  show_label=True),
172
  gr.File(label="Input Data", show_label=True)],
173
  outputs=[gr.Textbox(lines=1, label="Prediction", show_label=True),
174
+ # gr.Image(label="Input Image", show_label=True),
175
  # gr.Image(label="Activation 1", show_label=True),
176
  # gr.Image(label="Actication 2", show_label=True)],
177
  gr.Plot(label="Activations", show_label=True)