Spaces:
Sleeping
Sleeping
add cache directory
Browse files
main.py
CHANGED
@@ -13,8 +13,8 @@ from starlette.middleware.cors import CORSMiddleware
|
|
13 |
|
14 |
load_dotenv()
|
15 |
|
16 |
-
model = BlenderbotSmallForConditionalGeneration.from_pretrained("facebook/blenderbot_small-90M")
|
17 |
-
tokenizer = AutoTokenizer.from_pretrained("facebook/blenderbot_small-90M")
|
18 |
class UserMSGRequest(BaseModel):
|
19 |
message: str
|
20 |
|
|
|
13 |
|
14 |
load_dotenv()
|
15 |
|
16 |
+
model = BlenderbotSmallForConditionalGeneration.from_pretrained("facebook/blenderbot_small-90M", cache_dir="new_cache_dir/")
|
17 |
+
tokenizer = AutoTokenizer.from_pretrained("facebook/blenderbot_small-90M", cache_dir="new_cache_dir/")
|
18 |
class UserMSGRequest(BaseModel):
|
19 |
message: str
|
20 |
|