Nightfury16 commited on
Commit
d4df241
·
1 Parent(s): d603030
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ def get_image_inputs(image_file, image_url):
49
  def run_qwen(raw_b64, prompt):
50
  url = f"https://api.runpod.ai/v2/{QWEN_ENDPOINT_ID}/runsync"
51
  headers = {"Content-Type": "application/json", "Authorization": f"Bearer {RUNPOD_API_KEY}"}
52
- payload = {"input": {"image": raw_b64, "prompt": prompt, "seed": 42, "use_lightning": True, "true_guidance_scale": 2.5, "num_inference_steps": 4}}
53
  try:
54
  response = requests.post(url, headers=headers, json=payload, timeout=60)
55
  return b64_to_pil(response.json()["output"]["images"][0])
 
49
  def run_qwen(raw_b64, prompt):
50
  url = f"https://api.runpod.ai/v2/{QWEN_ENDPOINT_ID}/runsync"
51
  headers = {"Content-Type": "application/json", "Authorization": f"Bearer {RUNPOD_API_KEY}"}
52
+ payload = {"input": {"image": raw_b64, "prompt": prompt, "seed": 42, "use_lightning": True, "true_guidance_scale": 1.0, "num_inference_steps": 4}}
53
  try:
54
  response = requests.post(url, headers=headers, json=payload, timeout=60)
55
  return b64_to_pil(response.json()["output"]["images"][0])