MSaadTariq commited on
Commit
b4b347f
·
verified ·
1 Parent(s): 6e7d51c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,7 +2,7 @@ from transformers import pipeline
2
  import io
3
  import matplotlib.pyplot as plt
4
  import torch
5
-
6
 
7
  def render_results_in_image(in_pil_img, in_results):
8
  plt.figure(figsize=(16, 10))
@@ -67,4 +67,4 @@ demo = gr.Interface(
67
  description="Just upload your image and let ObjectDetect API work its magic, revealing the objects waiting to be discovered"
68
  )
69
 
70
- demo.launch()
 
2
  import io
3
  import matplotlib.pyplot as plt
4
  import torch
5
+ from PIL import Image
6
 
7
  def render_results_in_image(in_pil_img, in_results):
8
  plt.figure(figsize=(16, 10))
 
67
  description="Just upload your image and let ObjectDetect API work its magic, revealing the objects waiting to be discovered"
68
  )
69
 
70
+ demo.launch()