Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -6,18 +6,22 @@ from urllib.parse import urlparse
|
|
| 6 |
from fastapi import FastAPI, Request, Form
|
| 7 |
from fastapi.responses import HTMLResponse
|
| 8 |
|
| 9 |
-
|
| 10 |
-
from
|
| 11 |
-
from
|
|
|
|
| 12 |
get_cached_deals, set_cached_deals,
|
| 13 |
get_cached_coupons, set_cached_coupons,
|
| 14 |
get_base_price, set_base_price
|
| 15 |
)
|
| 16 |
-
from
|
| 17 |
-
from
|
| 18 |
-
from
|
| 19 |
-
from
|
| 20 |
-
from
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
app = FastAPI()
|
| 23 |
|
|
|
|
| 6 |
from fastapi import FastAPI, Request, Form
|
| 7 |
from fastapi.responses import HTMLResponse
|
| 8 |
|
| 9 |
+
# REMOVED the "app." prefix from these lines:
|
| 10 |
+
from config import HF_TOKEN
|
| 11 |
+
from security import scrub_conversational_bloat, check_url_safe
|
| 12 |
+
from database import (
|
| 13 |
get_cached_deals, set_cached_deals,
|
| 14 |
get_cached_coupons, set_cached_coupons,
|
| 15 |
get_base_price, set_base_price
|
| 16 |
)
|
| 17 |
+
from schema import extract_universal_sizing, is_size_mismatched
|
| 18 |
+
from network import extract_page_data
|
| 19 |
+
from coupons import call_free_llm, fetch_coupons_standalone
|
| 20 |
+
from shopping import scan_prices
|
| 21 |
+
from ui import generate_ui
|
| 22 |
+
|
| 23 |
+
app = FastAPI()
|
| 24 |
+
# ... rest of your code remains exactly the same
|
| 25 |
|
| 26 |
app = FastAPI()
|
| 27 |
|