kmkarakaya commited on
Commit
dc3475e
·
1 Parent(s): 1822cf3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -3
app.py CHANGED
@@ -16,10 +16,21 @@ def generate_review(prompt):
16
  early_stopping=True
17
  )
18
  return(review_tokenizer.decode(output[0], skip_special_tokens=True))
 
 
19
 
20
- title="Review Generator"
21
- description= "Generate a review in Turkish by providing a prompt. Generation takes 15-20 seconds on average."
22
- article = "<p style='text-align: center'><a href='https://youtube.com/playlist?list=PLQflnv_s49v9d9w-L0S8XUXXdNks7vPBL' target='_blank'>How to Train a Hugging Face Causal Language Model from Scratch with a Custom Dataset and a Custom Tokenizer? (in English): </a></p> <p style='text-align: center'><a href='https://youtube.com/playlist?list=PLQflnv_s49v8aajw6m9MRNbAAbL63flKD' target='_blank'>Hugging Face kütüphanesini kullanarak bir GPT2 Transformer Dil Modelini Kendi Veri Setimizle nasıl eğitip kullanabiliriz? (in Turkish): </a></p>"
 
 
 
 
 
 
 
 
 
23
  examples=["Bir hafta önce aldığım cep telefonu",
24
  "Tatil için rezervasyon yaptırdım.",
25
  "Henüz alalı bir",
 
16
  early_stopping=True
17
  )
18
  return(review_tokenizer.decode(output[0], skip_special_tokens=True))
19
+
20
+
21
 
22
+ title="Turkish Review Generator: A GPT2 based Text Generator Trained with a Custom Dataset"
23
+ description= """
24
+ Generate a review in Turkish by providing a prompt.
25
+ Generation takes 15-20 seconds on average.
26
+ """"
27
+ article = """
28
+ <p style='text-align: center'>On YouTube:</p>
29
+ <p style='text-align: left'><a href='https://youtube.com/playlist?list=PLQflnv_s49v9d9w-L0S8XUXXdNks7vPBL' target='_blank'>How to Train a Hugging Face Causal Language Model from Scratch with a Custom Dataset and a Custom Tokenizer? (in English): </a></p>
30
+ <p style='text-align: left'><a href='https://youtube.com/playlist?list=PLQflnv_s49v8aajw6m9MRNbAAbL63flKD' target='_blank'>Hugging Face kütüphanesini kullanarak bir GPT2 Transformer Dil Modelini Kendi Veri Setimizle nasıl eğitip kullanabiliriz? (in Turkish): </a></p>
31
+ <p style='text-align: center'>On Medium:</p>
32
+ <p style='text-align: left'><a href='https://medium.com/deep-learning-with-keras/how-to-train-a-hugging-face-causal-language-model-from-scratch-8d08d038168f' target='_blank'>Hugging Face kütüphanesini kullanarak bir GPT2 Transformer Dil Modelini Kendi Veri Setimizle nasıl eğitip kullanabiliriz? (in Turkish): </a></p>
33
+ """
34
  examples=["Bir hafta önce aldığım cep telefonu",
35
  "Tatil için rezervasyon yaptırdım.",
36
  "Henüz alalı bir",