test on app.py
Browse files
app.py
CHANGED
@@ -15,4 +15,14 @@ if st.button('générer'):
|
|
15 |
|
16 |
st.write('Part 2')
|
17 |
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
st.write('Part 2')
|
17 |
|
18 |
+
|
19 |
+
#### TEST ####
|
20 |
+
from transformers import pipeline
|
21 |
+
|
22 |
+
input = "i have question and answere.\
|
23 |
+
the question is : How many cars here ?\
|
24 |
+
the response is : 2\
|
25 |
+
with this information, can you crate an answere phrase in french"
|
26 |
+
|
27 |
+
generator = pipeline('text-generation', model='gpt2')
|
28 |
+
print(generator(input, max_length=30))
|