Spaces:
Running
Running
clementruhm
commited on
Commit
·
e941a40
1
Parent(s):
0303990
Update app.py
Browse files
app.py
CHANGED
@@ -94,7 +94,7 @@ def main():
|
|
94 |
elif src_from_file_:
|
95 |
src_ = src_from_file_
|
96 |
tgt_ = tgt_from_file_
|
97 |
-
if not src_ or not tgt_:
|
98 |
logging.warning("source or target are not provided")
|
99 |
return
|
100 |
return service_request(src_text_, src_, tgt_, api_key_, api_secret_)
|
|
|
94 |
elif src_from_file_:
|
95 |
src_ = src_from_file_
|
96 |
tgt_ = tgt_from_file_
|
97 |
+
if (not src_ and not src_text_) or not tgt_:
|
98 |
logging.warning("source or target are not provided")
|
99 |
return
|
100 |
return service_request(src_text_, src_, tgt_, api_key_, api_secret_)
|