yukee1992 commited on
Commit
0164e93
·
verified ·
1 Parent(s): 0ae19be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -104,7 +104,7 @@ def clean_text(text):
104
  def upload_to_oci(file_path: str, filename: str, project_id: str, file_type="voiceover"):
105
  """Upload file to OCI using your existing API with subfolder support"""
106
  try:
107
- if not OCI_UPLOAD_API_URL or OCI_UPLOAD_API_URL == "http://localhost:7860":
108
  # If OCI API is not configured or is localhost, skip upload
109
  print("⚠️ OCI upload skipped - no valid OCI_UPLOAD_API_URL configured")
110
  return {"status": "skipped", "message": "OCI upload disabled"}, None
 
104
  def upload_to_oci(file_path: str, filename: str, project_id: str, file_type="voiceover"):
105
  """Upload file to OCI using your existing API with subfolder support"""
106
  try:
107
+ if not OCI_UPLOAD_API_URL or OCI_UPLOAD_API_URL == "https://yukee1992-oci-video-storage.hf.space":
108
  # If OCI API is not configured or is localhost, skip upload
109
  print("⚠️ OCI upload skipped - no valid OCI_UPLOAD_API_URL configured")
110
  return {"status": "skipped", "message": "OCI upload disabled"}, None