Spaces:
Running
Running
Update prompt/prompt_services.py
Browse files
prompt/prompt_services.py
CHANGED
|
@@ -53,7 +53,7 @@ def get_prompts(image_base64, category, user_prompt, sentiment, negative_prompt,
|
|
| 53 |
)
|
| 54 |
content = response.choices[0].message.content.strip()
|
| 55 |
content = re.sub(r"^```json\s*|\s*```$", "", content)
|
| 56 |
-
print(f"Prompt variations response: {content}")
|
| 57 |
-
return json.loads(content)["variations"]
|
| 58 |
except Exception:
|
| 59 |
return []
|
|
|
|
| 53 |
)
|
| 54 |
content = response.choices[0].message.content.strip()
|
| 55 |
content = re.sub(r"^```json\s*|\s*```$", "", content)
|
| 56 |
+
# print(f"Prompt variations response: {content}")
|
| 57 |
+
# return json.loads(content)["variations"]
|
| 58 |
except Exception:
|
| 59 |
return []
|