joheras commited on
Commit
3a5c9b7
·
1 Parent(s): 4b164c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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'):