File size: 746 Bytes
0fd7b28
 
30016b4
 
 
 
 
 
0fd7b28
 
30016b4
 
e3e85f7
30016b4
 
 
 
 
e3e85f7
30016b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import gradio as gr 

title="Review Generator"
description= "Generate a review in Turkish by providing a prompt. Generation takes 15 seconds on average."
article = "<p style='text-align: center'><a href='https://youtube.com/playlist?list=PLQflnv_s49v9d9w-L0S8XUXXdNks7vPBL' target='_blank'>Full Code is here: </a></p>"                    
examples=["Bir hafta önce aldığım cep telefonu",
          "Tatil için rezervasyon yaptırdım.",
          "Henüz alalı bir"]                   


gr.Interface.load(
    "kmkarakaya/turkishReviews-ds",
    src='huggingface',
    inputs=gr.Textbox(lines=5, label="Input Text"),
    title=title,
    description=description,
    article=article,
    examples=examples,
    enable_queue=True
).launch()