Spaces:
Runtime error
Runtime error
Update pages/task3.py
Browse files- pages/task3.py +1 -1
pages/task3.py
CHANGED
|
@@ -33,7 +33,7 @@ DEVICE = 'cpu'
|
|
| 33 |
|
| 34 |
tokenizer_path = "sberbank-ai/rugpt3small_based_on_gpt2"
|
| 35 |
|
| 36 |
-
model = torch.load('srcs/gpt_weights.pth', map_location=torch.device('cpu'))
|
| 37 |
tokenizer = GPT2Tokenizer.from_pretrained(tokenizer_path)
|
| 38 |
|
| 39 |
st.markdown("""
|
|
|
|
| 33 |
|
| 34 |
tokenizer_path = "sberbank-ai/rugpt3small_based_on_gpt2"
|
| 35 |
|
| 36 |
+
model = torch.load('srcs/gpt_weights.pth', map_location=torch.device('cpu'))
|
| 37 |
tokenizer = GPT2Tokenizer.from_pretrained(tokenizer_path)
|
| 38 |
|
| 39 |
st.markdown("""
|