Spaces:
Sleeping
Sleeping
Remove old code
Browse files
app.py
CHANGED
|
@@ -2,8 +2,6 @@ from transformers import DetrImageProcessor, DetrForObjectDetection
|
|
| 2 |
import torch
|
| 3 |
from PIL import Image
|
| 4 |
import gradio as gr
|
| 5 |
-
# import requests
|
| 6 |
-
# import random
|
| 7 |
|
| 8 |
def detect_objects(image):
|
| 9 |
# Load the pre-trained DETR model
|
|
|
|
| 2 |
import torch
|
| 3 |
from PIL import Image
|
| 4 |
import gradio as gr
|
|
|
|
|
|
|
| 5 |
|
| 6 |
def detect_objects(image):
|
| 7 |
# Load the pre-trained DETR model
|