Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -90,13 +90,13 @@ def qa_result(context, question, file, pipe=pipe):
|
|
90 |
text = remove_references(answered)
|
91 |
else:
|
92 |
if file is None and len(context) == 0 and len(question) == 0:
|
93 |
-
text = "Որպեսզի ես կարողանամ քեզ օգնել,
|
94 |
# if len(context) == 0 and len(question) == 0:
|
95 |
# text = "Որպեսզի ես կարողանամ քեզ օգնել, դուք պետք է տրամադրեք տեքստ և հարցեր"
|
96 |
elif len(context) == 0:
|
97 |
-
text = "Ես չեմ կարողանամ քեզ օգնել եթե
|
98 |
elif len(question) == 0:
|
99 |
-
text = "Ես չեմ կարողանամ քեզ օգնել եթե
|
100 |
else:
|
101 |
result = pipe(question=question, context=context)
|
102 |
answered = result['answer']
|
|
|
90 |
text = remove_references(answered)
|
91 |
else:
|
92 |
if file is None and len(context) == 0 and len(question) == 0:
|
93 |
+
text = "Որպեսզի ես կարողանամ քեզ օգնել, դու պետք է տրամադրես տեքստ կամ ֆայլը, և հարցեր"
|
94 |
# if len(context) == 0 and len(question) == 0:
|
95 |
# text = "Որպեսզի ես կարողանամ քեզ օգնել, դուք պետք է տրամադրեք տեքստ և հարցեր"
|
96 |
elif len(context) == 0:
|
97 |
+
text = "Ես չեմ կարողանամ քեզ օգնել եթե դու չտրամադրես տեքստը"
|
98 |
elif len(question) == 0:
|
99 |
+
text = "Ես չեմ կարողանամ քեզ օգնել եթե դու չտաս հարցը"
|
100 |
else:
|
101 |
result = pipe(question=question, context=context)
|
102 |
answered = result['answer']
|