Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,6 @@ from PIL import Image
|
|
7 |
from transformers import pipeline, AutoTokenizer, AutoModelForSeq2SeqLM
|
8 |
import re
|
9 |
|
10 |
-
device = "cuda" if torch.cuda.is_available() else "cpu"
|
11 |
-
|
12 |
# --------------------------- Configuration & Session State ---------------------------
|
13 |
# Define maximum dimensions for the fortune image (in pixels)
|
14 |
MAX_SIZE = (400, 400)
|
|
|
7 |
from transformers import pipeline, AutoTokenizer, AutoModelForSeq2SeqLM
|
8 |
import re
|
9 |
|
|
|
|
|
10 |
# --------------------------- Configuration & Session State ---------------------------
|
11 |
# Define maximum dimensions for the fortune image (in pixels)
|
12 |
MAX_SIZE = (400, 400)
|