Update app.py
Browse files
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 == "
|
| 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
|