Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -132,17 +132,25 @@ def download_from_wetransfer(url, output_path):
|
|
| 132 |
def handle_dropbox_transfer_with_prompt(url, output_dir):
|
| 133 |
"""Handle Dropbox Transfer with manual intervention"""
|
| 134 |
error_msg = f"""
|
| 135 |
-
|
| 136 |
|
| 137 |
-
|
| 138 |
|
| 139 |
-
|
| 140 |
1. Open this URL in a new tab: {url}
|
| 141 |
-
2. Click 'Download' or 'Download all'
|
| 142 |
-
3.
|
| 143 |
-
4.
|
|
|
|
|
|
|
|
|
|
| 144 |
|
| 145 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
"""
|
| 147 |
raise Exception(error_msg)
|
| 148 |
|
|
|
|
| 132 |
def handle_dropbox_transfer_with_prompt(url, output_dir):
|
| 133 |
"""Handle Dropbox Transfer with manual intervention"""
|
| 134 |
error_msg = f"""
|
| 135 |
+
🔗 DROPBOX TRANSFER DETECTED - Manual Link Required 🔗
|
| 136 |
|
| 137 |
+
Dropbox Transfer links need a small extra step:
|
| 138 |
|
| 139 |
+
OPTION 1 - Get Direct Download Link (Recommended):
|
| 140 |
1. Open this URL in a new tab: {url}
|
| 141 |
+
2. Click 'Download' or 'Download all'
|
| 142 |
+
3. Your browser will start downloading
|
| 143 |
+
4. Go to your browser's download manager (usually Ctrl+J or Cmd+Shift+J)
|
| 144 |
+
5. RIGHT-CLICK on the downloading item → "Copy Download Link"
|
| 145 |
+
6. Come back here and paste that direct link in the "File URL" field
|
| 146 |
+
7. Try processing again - it should work!
|
| 147 |
|
| 148 |
+
OPTION 2 - File Upload Instead:
|
| 149 |
+
1. Let the download finish from step 2 above
|
| 150 |
+
2. Switch to "File Upload" method in the form
|
| 151 |
+
3. Upload the downloaded file directly
|
| 152 |
+
|
| 153 |
+
💡 Tip: The direct download link (Option 1) is usually faster and works great with the URL method!
|
| 154 |
"""
|
| 155 |
raise Exception(error_msg)
|
| 156 |
|