Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,6 +17,9 @@ import sys
|
|
| 17 |
from typing import Tuple, List, Union, Optional
|
| 18 |
from transformers import GPT2Tokenizer, GPT2LMHeadModel, get_linear_schedule_with_warmup
|
| 19 |
import huggingface_hub.constants as hf_constants
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
hf_constants.HF_HUB_DOWNLOAD_TIMEOUT = 60
|
| 22 |
|
|
|
|
| 17 |
from typing import Tuple, List, Union, Optional
|
| 18 |
from transformers import GPT2Tokenizer, GPT2LMHeadModel, get_linear_schedule_with_warmup
|
| 19 |
import huggingface_hub.constants as hf_constants
|
| 20 |
+
from PIL import Image
|
| 21 |
+
import requests
|
| 22 |
+
|
| 23 |
|
| 24 |
hf_constants.HF_HUB_DOWNLOAD_TIMEOUT = 60
|
| 25 |
|