Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
453f168
1
Parent(s):
38c66c7
Fixed NLI string
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ text_category_example = [[" anadolu_efes e 18 lik star ! beko_basketbol_ligi nde
|
|
60 |
def nli(first_input, second_input, model_choice="turna_nli_nli_tr"):
|
61 |
|
62 |
if model_choice=="turna_nli_nli_tr":
|
63 |
-
input = f"hipotez: {
|
64 |
nli_model = pipeline(model="boun-tabi-LMG/turna_nli_nli_tr", device=0)
|
65 |
return nli_model(input)[0]["generated_text"]
|
66 |
else:
|
|
|
60 |
def nli(first_input, second_input, model_choice="turna_nli_nli_tr"):
|
61 |
|
62 |
if model_choice=="turna_nli_nli_tr":
|
63 |
+
input = f"hipotez: {first_input} önerme: {second_input}"
|
64 |
nli_model = pipeline(model="boun-tabi-LMG/turna_nli_nli_tr", device=0)
|
65 |
return nli_model(input)[0]["generated_text"]
|
66 |
else:
|