Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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
|