Update app.py
Browse files
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]
|
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()
|