Spaces:
Running
Running
fix: Wan2GP compatible resolutions (720x720) and default model
Browse files
backend/app/api/listing_free.py
CHANGED
|
@@ -99,7 +99,7 @@ async def auto_generate(body: dict):
|
|
| 99 |
openai_key = body.get("openai_key", "").strip()
|
| 100 |
product_info = body.get("product_info", "").strip()
|
| 101 |
wangp_url = body.get("wangp_url", "").strip()
|
| 102 |
-
model_choice = body.get("model_choice", "
|
| 103 |
resolution = body.get("resolution", "1088x1088")
|
| 104 |
steps = body.get("steps", 20)
|
| 105 |
guidance = body.get("guidance", 4)
|
|
|
|
| 99 |
openai_key = body.get("openai_key", "").strip()
|
| 100 |
product_info = body.get("product_info", "").strip()
|
| 101 |
wangp_url = body.get("wangp_url", "").strip()
|
| 102 |
+
model_choice = body.get("model_choice", "Wan2GP")
|
| 103 |
resolution = body.get("resolution", "1088x1088")
|
| 104 |
steps = body.get("steps", 20)
|
| 105 |
guidance = body.get("guidance", 4)
|
backend/app/services/listing_free/wangp.py
CHANGED
|
@@ -9,8 +9,8 @@ except ImportError:
|
|
| 9 |
HAS_GRADIO = False
|
| 10 |
|
| 11 |
WANGP_URL = "https://fe91b5c9d1cfdfc08e.gradio.live/"
|
| 12 |
-
DEFAULT_MODEL = "
|
| 13 |
-
RESOLUTION = "
|
| 14 |
STEPS = 20
|
| 15 |
GUIDANCE = 4
|
| 16 |
REF_STRENGTH = 75
|
|
|
|
| 9 |
HAS_GRADIO = False
|
| 10 |
|
| 11 |
WANGP_URL = "https://fe91b5c9d1cfdfc08e.gradio.live/"
|
| 12 |
+
DEFAULT_MODEL = "Wan2GP"
|
| 13 |
+
RESOLUTION = "720x720"
|
| 14 |
STEPS = 20
|
| 15 |
GUIDANCE = 4
|
| 16 |
REF_STRENGTH = 75
|
frontend/src/pages/ListingFree.jsx
CHANGED
|
@@ -2,12 +2,14 @@ import { useState, useRef, useEffect } from "react";
|
|
| 2 |
import { IcImage, IcUpload, IcDownload, IcRefresh, IcStar } from "../components/Icons";
|
| 3 |
|
| 4 |
const RESOLUTIONS = [
|
| 5 |
-
{ label: "
|
| 6 |
-
{ label: "
|
| 7 |
-
{ label: "
|
| 8 |
-
{ label: "
|
|
|
|
| 9 |
];
|
| 10 |
const MODELS = [
|
|
|
|
| 11 |
{ label: "Flux2 Klein 9B", value: "flux2_klein_9b" },
|
| 12 |
{ label: "Flux2 Klein 4B", value: "flux2_klein_4b" },
|
| 13 |
{ label: "Flux 1.1 Pro", value: "flux_1.1_pro" },
|
|
@@ -31,8 +33,8 @@ export default function ListingFree() {
|
|
| 31 |
|
| 32 |
const [wangpUrl, setWangpUrl] = useState(() => { try { return localStorage.getItem("tnt_wangp_url") || "https://fe91b5c9d1cfdfc08e.gradio.live/"; } catch { return "https://fe91b5c9d1cfdfc08e.gradio.live/"; }});
|
| 33 |
const [openaiKey, setOpenaiKey] = useState(() => { try { return localStorage.getItem("tnt_openai_key") || ""; } catch { return ""; }});
|
| 34 |
-
const [modelChoice, setModelChoice] = useState("
|
| 35 |
-
const [resolution, setResolution] = useState("
|
| 36 |
const [steps, setSteps] = useState(20);
|
| 37 |
const [guidance, setGuidance] = useState(4);
|
| 38 |
const [refStrength, setRefStrength] = useState(75);
|
|
|
|
| 2 |
import { IcImage, IcUpload, IcDownload, IcRefresh, IcStar } from "../components/Icons";
|
| 3 |
|
| 4 |
const RESOLUTIONS = [
|
| 5 |
+
{ label: "720x720 (Square)", value: "720x720" },
|
| 6 |
+
{ label: "832x624 (Landscape)", value: "832x624" },
|
| 7 |
+
{ label: "624x832 (Portrait)", value: "624x832" },
|
| 8 |
+
{ label: "832x480 (Wide)", value: "832x480" },
|
| 9 |
+
{ label: "480x832 (Tall)", value: "480x832" },
|
| 10 |
];
|
| 11 |
const MODELS = [
|
| 12 |
+
{ label: "Wan2GP (default)", value: "Wan2GP" },
|
| 13 |
{ label: "Flux2 Klein 9B", value: "flux2_klein_9b" },
|
| 14 |
{ label: "Flux2 Klein 4B", value: "flux2_klein_4b" },
|
| 15 |
{ label: "Flux 1.1 Pro", value: "flux_1.1_pro" },
|
|
|
|
| 33 |
|
| 34 |
const [wangpUrl, setWangpUrl] = useState(() => { try { return localStorage.getItem("tnt_wangp_url") || "https://fe91b5c9d1cfdfc08e.gradio.live/"; } catch { return "https://fe91b5c9d1cfdfc08e.gradio.live/"; }});
|
| 35 |
const [openaiKey, setOpenaiKey] = useState(() => { try { return localStorage.getItem("tnt_openai_key") || ""; } catch { return ""; }});
|
| 36 |
+
const [modelChoice, setModelChoice] = useState("Wan2GP");
|
| 37 |
+
const [resolution, setResolution] = useState("720x720");
|
| 38 |
const [steps, setSteps] = useState(20);
|
| 39 |
const [guidance, setGuidance] = useState(4);
|
| 40 |
const [refStrength, setRefStrength] = useState(75);
|