r3gm commited on
Commit
9383778
1 Parent(s): 512d9ac

Update app_rvc.py

Browse files
Files changed (1) hide show
  1. app_rvc.py +3 -0
app_rvc.py CHANGED
@@ -1308,6 +1308,9 @@ class SoniTranslate(SoniTrCache):
1308
  if not document:
1309
  raise Exception("No data found")
1310
 
 
 
 
1311
  if "videobook" in output_type:
1312
  if not document.lower().endswith(".pdf"):
1313
  raise ValueError(
 
1308
  if not document:
1309
  raise Exception("No data found")
1310
 
1311
+ if os.environ.get("ZERO_GPU") == "TRUE" and not is_string:
1312
+ raise RuntimeError("This option is disabled in this demo.")
1313
+
1314
  if "videobook" in output_type:
1315
  if not document.lower().endswith(".pdf"):
1316
  raise ValueError(