Spaces:
Running
Running
fix: Wan2GP compatible resolutions (720x720) and default model
Browse filesFiles changed (3)
98 unmodified lines9910010110210310410598 unmodified linesopenai_key = body.get("openai_key", "").strip()product_info = body.get("product_info", "").strip()wangp_url = body.get("wangp_url", "").strip()model_choice = body.get("model_choice", "flux2_klein_9b")resolution = body.get("resolution", "1088x1088")steps = body.get("steps", 20)guidance = body.get("guidance", 4)98 unmodified lines9910010110210310410598 unmodified linesopenai_key = body.get("openai_key", "").strip()product_info = body.get("product_info", "").strip()wangp_url = body.get("wangp_url", "").strip()model_choice = body.get("model_choice", "Wan2GP")resolution = body.get("resolution", "1088x1088")steps = body.get("steps", 20)guidance = body.get("guidance", 4)
8 unmodified lines9101112131415168 unmodified linesHAS_GRADIO = FalseWANGP_URL = "https://fe91b5c9d1cfdfc08e.gradio.live/"DEFAULT_MODEL = "flux2_klein_9b"RESOLUTION = "1088x1088"STEPS = 20GUIDANCE = 4REF_STRENGTH = 758 unmodified lines9101112131415168 unmodified linesHAS_GRADIO = FalseWANGP_URL = "https://fe91b5c9d1cfdfc08e.gradio.live/"DEFAULT_MODEL = "Wan2GP"RESOLUTION = "720x720"STEPS = 20GUIDANCE = 4REF_STRENGTH = 75
1 unmodified line234567891011121317 unmodified lines31323334353637381 unmodified lineimport { IcImage, IcUpload, IcDownload, IcRefresh, IcStar } from "../components/Icons";const RESOLUTIONS = [{ label: "1088x1088 (Square)", value: "1088x1088" },{ label: "1088x1920 (Portrait)", value: "1088x1920" },{ label: "1024x1024", value: "1024x1024" },{ label: "1280x720 (Landscape)", value: "1280x720" },];const MODELS = [{ label: "Flux2 Klein 9B", value: "flux2_klein_9b" },{ label: "Flux2 Klein 4B", value: "flux2_klein_4b" },{ label: "Flux 1.1 Pro", value: "flux_1.1_pro" },17 unmodified linesconst [wangpUrl, setWangpUrl] = useState(() => { try { return localStorage.getItem("tnt_wangp_url") || "https://fe91b5c9d1cfdfc08e.gradio.live/"; } catch { return "https://fe91b5c9d1cfdfc08e.gradio.live/"; }});const [openaiKey, setOpenaiKey] = useState(() => { try { return localStorage.getItem("tnt_openai_key") || ""; } catch { return ""; }});const [modelChoice, setModelChoice] = useState("flux2_klein_9b");const [resolution, setResolution] = useState("1088x1088");const [steps, setSteps] = useState(20);const [guidance, setGuidance] = useState(4);const [refStrength, setRefStrength] = useState(75);1 unmodified line2345678910111213141517 unmodified lines33343536373839401 unmodified lineimport { IcImage, IcUpload, IcDownload, IcRefresh, IcStar } from "../components/Icons";const RESOLUTIONS = [{ label: "720x720 (Square)", value: "720x720" },{ label: "832x624 (Landscape)", value: "832x624" },{ label: "624x832 (Portrait)", value: "624x832" },{ label: "832x480 (Wide)", value: "832x480" },{ label: "480x832 (Tall)", value: "480x832" },];const MODELS = [{ label: "Wan2GP (default)", value: "Wan2GP" },{ label: "Flux2 Klein 9B", value: "flux2_klein_9b" },{ label: "Flux2 Klein 4B", value: "flux2_klein_4b" },{ label: "Flux 1.1 Pro", value: "flux_1.1_pro" },17 unmodified linesconst [wangpUrl, setWangpUrl] = useState(() => { try { return localStorage.getItem("tnt_wangp_url") || "https://fe91b5c9d1cfdfc08e.gradio.live/"; } catch { return "https://fe91b5c9d1cfdfc08e.gradio.live/"; }});const [openaiKey, setOpenaiKey] = useState(() => { try { return localStorage.getItem("tnt_openai_key") || ""; } catch { return ""; }});const [modelChoice, setModelChoice] = useState("Wan2GP");const [resolution, setResolution] = useState("720x720");const [steps, setSteps] = useState(20);const [guidance, setGuidance] = useState(4);const [refStrength, setRefStrength] = useState(75);
backend/app/api/listing_free.py+1-1
backend/app/services/listing_free/wangp.py+2-2
frontend/src/pages/ListingFree.jsx+8-6