Spaces:
Running
Running
adjust generation time
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import time
|
|
3 |
import warnings
|
4 |
import re
|
5 |
import gc
|
6 |
-
warnings.
|
7 |
|
8 |
from transformers import GPT2LMHeadModel, GPT2Tokenizer
|
9 |
import torch
|
|
|
3 |
import warnings
|
4 |
import re
|
5 |
import gc
|
6 |
+
warnings.filterwarnings("ignore", category=UserWarning, module="torch._utils")
|
7 |
|
8 |
from transformers import GPT2LMHeadModel, GPT2Tokenizer
|
9 |
import torch
|