Ehren12 commited on
Commit
a2e9ec7
1 Parent(s): 8186b80

add cache directory

Browse files
Files changed (1) hide show
  1. main.py +2 -2
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