SilvusTV commited on
Commit
359f6f7
1 Parent(s): ed350f1

test on app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -15,4 +15,14 @@ if st.button('générer'):
15
 
16
  st.write('Part 2')
17
 
18
- os.system("language.py")
 
 
 
 
 
 
 
 
 
 
 
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))