Spaces:
Sleeping
Sleeping
timestamp
Browse files
app.py
CHANGED
@@ -6,9 +6,16 @@ import torch
|
|
6 |
from huggingface_hub import login
|
7 |
from transformers import pipeline
|
8 |
from transformers import GPT2Tokenizer, GPT2LMHeadModel,set_seed
|
|
|
|
|
9 |
login(os.environ["HF_TOKEN"])
|
10 |
#https://huggingface.co/facebook/opt-1.3b
|
11 |
#generator = pipeline('text-generation', model="microsoft/DialoGPT-medium")
|
|
|
|
|
|
|
|
|
|
|
12 |
tokenizer = GPT2Tokenizer.from_pretrained('microsoft/DialoGPT-medium')
|
13 |
original_model = GPT2LMHeadModel.from_pretrained('microsoft/DialoGPT-medium')
|
14 |
untethered_model = GPT2LMHeadModel.from_pretrained('zmbfeng/untethered_20240225_epochs_500')
|
|
|
6 |
from huggingface_hub import login
|
7 |
from transformers import pipeline
|
8 |
from transformers import GPT2Tokenizer, GPT2LMHeadModel,set_seed
|
9 |
+
import datetime
|
10 |
+
|
11 |
login(os.environ["HF_TOKEN"])
|
12 |
#https://huggingface.co/facebook/opt-1.3b
|
13 |
#generator = pipeline('text-generation', model="microsoft/DialoGPT-medium")
|
14 |
+
|
15 |
+
# dt stores the current date and time
|
16 |
+
dt = datetime.datetime.now()
|
17 |
+
print(dt)
|
18 |
+
print("loading models")
|
19 |
tokenizer = GPT2Tokenizer.from_pretrained('microsoft/DialoGPT-medium')
|
20 |
original_model = GPT2LMHeadModel.from_pretrained('microsoft/DialoGPT-medium')
|
21 |
untethered_model = GPT2LMHeadModel.from_pretrained('zmbfeng/untethered_20240225_epochs_500')
|