Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,8 @@ pipe = pipeline("text-classification", model="joheras/bertin-roberta-base-spanis
|
|
7 |
def information_or_intent(text):
|
8 |
if(not('?' in text)):
|
9 |
text = text+'?'
|
|
|
|
|
10 |
res = pipe(text)
|
11 |
res = res[0]
|
12 |
if(res['label']=='LABEL_1'):
|
|
|
7 |
def information_or_intent(text):
|
8 |
if(not('?' in text)):
|
9 |
text = text+'?'
|
10 |
+
if(not('¿' in text)):
|
11 |
+
text = '¿'+text
|
12 |
res = pipe(text)
|
13 |
res = res[0]
|
14 |
if(res['label']=='LABEL_1'):
|