Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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()
|