nimool commited on
Commit
1dfffbf
1 Parent(s): 24a297c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -53,7 +53,7 @@ tokenizer1 = AutoTokenizer.from_pretrained("pedramyazdipoor/persian_xlm_roberta_
53
  roberta_large = pipeline(task='question-answering', model=model1, tokenizer=tokenizer1)
54
 
55
  def Q_A(text=None, audio=None, context=None):
56
- if text is None:
57
  question = parse(audio)
58
  elif audio is None:
59
  question = text
 
53
  roberta_large = pipeline(task='question-answering', model=model1, tokenizer=tokenizer1)
54
 
55
  def Q_A(text=None, audio=None, context=None):
56
+ if text == "":
57
  question = parse(audio)
58
  elif audio is None:
59
  question = text