Mary12 commited on
Commit
245d852
·
1 Parent(s): ec21331

Update app.py

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