Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,13 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
15 |
@st.cache(allow_output_mutation=True)
|
16 |
def get_model():
|
17 |
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
#tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln95Paraphrase")
|
22 |
#model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln95Paraphrase")
|
|
|
15 |
@st.cache(allow_output_mutation=True)
|
16 |
def get_model():
|
17 |
|
18 |
+
#BigSalmon/InstructGPT2Large
|
19 |
+
|
20 |
+
tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InstructGPT2Large")
|
21 |
+
model = AutoModelForCausalLM.from_pretrained("BigSalmon/InstructGPT2Large")
|
22 |
+
|
23 |
+
#tokenizer = AutoTokenizer.from_pretrained("BigSalmon/TruncatedLLamaGPT2Large")
|
24 |
+
#model = AutoModelForCausalLM.from_pretrained("BigSalmon/TruncatedLLamaGPT2Large")
|
25 |
|
26 |
#tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln95Paraphrase")
|
27 |
#model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln95Paraphrase")
|