serdar2nc commited on
Commit
8e1aa52
1 Parent(s): e76a7e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ tokenizer = AutoTokenizer.from_pretrained("savasy/bert-base-turkish-sentiment-ca
7
 
8
  def greet(text):
9
  pipe = pipeline("sentiment-analysis", tokenizer=tokenizer, model=model)
10
- return pipe(text)[0]['label']
11
 
12
  iface = gr.Interface(fn=greet, inputs=gr.inputs.Textbox(placeholder="Lütfen Cümle Giriniz...", lines=5), outputs="text")
13
  iface.launch()
 
7
 
8
  def greet(text):
9
  pipe = pipeline("sentiment-analysis", tokenizer=tokenizer, model=model)
10
+ return pipe(text)[0]
11
 
12
  iface = gr.Interface(fn=greet, inputs=gr.inputs.Textbox(placeholder="Lütfen Cümle Giriniz...", lines=5), outputs="text")
13
  iface.launch()