update app
Browse files- app.py +1 -0
- requirements.txt +1 -0
app.py
CHANGED
|
@@ -10,6 +10,7 @@ import torch.nn.functional as F
|
|
| 10 |
import gradio as gr
|
| 11 |
from PIL import Image, ImageFilter, ImageChops, ImageDraw
|
| 12 |
from huggingface_hub import hf_hub_download
|
|
|
|
| 13 |
|
| 14 |
# --- IMPORT YOUR CUSTOM MODULES ---
|
| 15 |
# Ensure the 'sam2' folder and 'plm_adapter_...' file are uploaded to your Space
|
|
|
|
| 10 |
import gradio as gr
|
| 11 |
from PIL import Image, ImageFilter, ImageChops, ImageDraw
|
| 12 |
from huggingface_hub import hf_hub_download
|
| 13 |
+
import spaces # <--- NEW IMPORT
|
| 14 |
|
| 15 |
# --- IMPORT YOUR CUSTOM MODULES ---
|
| 16 |
# Ensure the 'sam2' folder and 'plm_adapter_...' file are uploaded to your Space
|
requirements.txt
CHANGED
|
@@ -10,4 +10,5 @@ huggingface_hub
|
|
| 10 |
accelerate
|
| 11 |
timm
|
| 12 |
transformers
|
|
|
|
| 13 |
git+https://github.com/facebookresearch/sam2.git
|
|
|
|
| 10 |
accelerate
|
| 11 |
timm
|
| 12 |
transformers
|
| 13 |
+
spaces
|
| 14 |
git+https://github.com/facebookresearch/sam2.git
|