Spaces:
Runtime error
Runtime error
Commit
·
3951424
1
Parent(s):
c36899b
Update app.py
Browse files
app.py
CHANGED
@@ -24,9 +24,9 @@ def generate_review(prompt):
|
|
24 |
title="Turkish Review Generator: A GPT2 based Text Generator Trained with a Custom Dataset"
|
25 |
description= """Generate a review in Turkish by providing a prompt or selecting an example prompt below.
|
26 |
Generation takes <b>15-20 seconds</b> on average.
|
27 |
-
Enjoy!
|
28 |
|
29 |
-
|
30 |
article = """<p style='text-align: center'>On YouTube:</p>
|
31 |
<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?</a></p>
|
32 |
<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>
|
@@ -46,9 +46,9 @@ demo = gr.Interface(fn=generate_review,
|
|
46 |
description= description,
|
47 |
article = article,
|
48 |
#cache_examples = False
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
)
|
53 |
#demo.launch('share=True', 'enable_queue=True')
|
54 |
demo.launch()
|
|
|
24 |
title="Turkish Review Generator: A GPT2 based Text Generator Trained with a Custom Dataset"
|
25 |
description= """Generate a review in Turkish by providing a prompt or selecting an example prompt below.
|
26 |
Generation takes <b>15-20 seconds</b> on average.
|
27 |
+
Enjoy!"""
|
28 |
|
29 |
+
#<p>NOTE: Examples can sometimes generate ERROR. When you see ERROR on the screen <b>just click SUBMIT</b>. Model will generate text in 15-20 secs.</p>
|
30 |
article = """<p style='text-align: center'>On YouTube:</p>
|
31 |
<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?</a></p>
|
32 |
<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>
|
|
|
46 |
description= description,
|
47 |
article = article,
|
48 |
#cache_examples = False
|
49 |
+
allow_flagging="manual",
|
50 |
+
flagging_options=["good","moderate", "non-sense", ]
|
51 |
+
flagging_dir='./flags'
|
52 |
)
|
53 |
#demo.launch('share=True', 'enable_queue=True')
|
54 |
demo.launch()
|