Spaces:
Running
Running
Fix: import FileResponse from fastapi directly instead of ai_runtime_final6
Browse files- ai_runtime_patch_fast.py +2 -1
ai_runtime_patch_fast.py
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
"""Final patch v6: FIXED short video generation — Vietnamese fonts, robust text splitting, no silent errors."""
|
| 2 |
import re, threading, time, json, os, asyncio, hashlib, subprocess, requests, sys, logging
|
| 3 |
import ai_runtime_final6 as f6
|
| 4 |
-
from ai_runtime_final6 import app, rt, f5, HTMLResponse, JSONResponse,
|
|
|
|
| 5 |
import html as html_lib
|
| 6 |
from urllib.parse import urlparse
|
| 7 |
from datetime import datetime, timezone, timedelta
|
|
|
|
| 1 |
"""Final patch v6: FIXED short video generation — Vietnamese fonts, robust text splitting, no silent errors."""
|
| 2 |
import re, threading, time, json, os, asyncio, hashlib, subprocess, requests, sys, logging
|
| 3 |
import ai_runtime_final6 as f6
|
| 4 |
+
from ai_runtime_final6 import app, rt, f5, HTMLResponse, JSONResponse, Request, Query
|
| 5 |
+
from fastapi.responses import FileResponse
|
| 6 |
import html as html_lib
|
| 7 |
from urllib.parse import urlparse
|
| 8 |
from datetime import datetime, timezone, timedelta
|