change language print
Browse files- language.py +1 -5
language.py
CHANGED
@@ -1,13 +1,9 @@
|
|
1 |
-
print('###### LANGUAGES ######')
|
2 |
from transformers import T5Tokenizer, T5ForConditionalGeneration
|
3 |
|
4 |
-
|
5 |
def longText(answere, question):
|
6 |
-
print(
|
7 |
-
print(question)
|
8 |
|
9 |
input_text = " i have a question and answer.\nthe question is : {}\n the response is : {}\n with this information, can you create an answer phrase?".format(question, answere)
|
10 |
-
print(input_text)
|
11 |
|
12 |
tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-large")
|
13 |
model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-large")
|
|
|
|
|
1 |
from transformers import T5Tokenizer, T5ForConditionalGeneration
|
2 |
|
|
|
3 |
def longText(answere, question):
|
4 |
+
print('###### LANGUAGES ######')
|
|
|
5 |
|
6 |
input_text = " i have a question and answer.\nthe question is : {}\n the response is : {}\n with this information, can you create an answer phrase?".format(question, answere)
|
|
|
7 |
|
8 |
tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-large")
|
9 |
model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-large")
|