Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

> 可以看得到 input 資料是什麼嗎 #12

Closed
lucemia opened this issue Oct 23, 2023 · 3 comments · Fixed by #13
Closed

> 可以看得到 input 資料是什麼嗎 #12

lucemia opened this issue Oct 23, 2023 · 3 comments · Fixed by #13

Comments

@lucemia
Copy link
Contributor

lucemia commented Oct 23, 2023

          > 可以看得到 input 資料是什麼嗎

或是重現時把資料給我

from gpt_fn.utils.json_decode import loads

input_ = '{"subject": "Introducing the Mandelic Acid and Allantoin Acne-Care Calming Ampoule", "body": "Dear valued client, \n\nWe are excited to announce the launch of our latest breakthrough product - the Mandelic Acid and Allantoin Acne-Care Calming Ampoule. This innovative serum is set to revolutionize the way we tackle acne, acne scars, and various skin concerns, delivering a transformative skincare experience like never before.\n\nAt MeiJia Beauty Co. Ltd., we are committed to providing high-quality skincare solutions that meet the diverse needs of our customers. The Mandelic Acid and Allantoin Acne-Care Calming Ampoule is the epitome of our dedication to excellence. This exceptional serum is meticulously formulated to target common skin issues and offer a comprehensive approach to achieving clear, radiant, and blemish-free skin.\n\nHarnessing the power of nature\'s finest ingredients, our ampoule combines mandelic acid and allantoin to ensure optimal results in addressing acne, acne scars, and uneven skin tone. With regular use, this ampoule whitens spots, smooths out acne scars, improves skin absorption rate, and provides a soothing and moisturizing effect. It is specially formulated to calm sensitive skin and relieve redness, making it suitable for all skin types.\n\nThe key ingredient, mandelic acid, has been scientifically proven to effectively improve the abnormality of hair follicle keratin, control sebum secretion, and combat metabolic acne. Additionally, allantoin, a powerful soothing agent, further enhances the efficacy of the ampoule, ensuring a truly transformative skincare experience.\n\nWe invite you to visit our official website at [insert contact info url] to learn more about the Mandelic Acid and Allantoin Acne-Care Calming Ampoule and its transformative benefits. Discover the power of this exceptional serum and unlock the secret to clear, radiant, and blemish-free skin.\n\nFor any media inquiries, please feel free to contact our spokesperson, 陳誠松, at [insert contact info email]. You can also find more information on our website at [insert contact info url].\n\nThank you for your continued support and trust in MeiJia Beauty Co. Ltd. We look forward to providing you with transformative skincare experiences.\n\nBest regards,\n[Your Name]\nMeiJia Beauty Co. Ltd."}'
result = loads(input_, auto_repair=True)

Originally posted by @Touyu-Pan in https://github.com/livingbio/gstudio/issues/13226#issuecomment-1774283464

@lucemia
Copy link
Contributor Author

lucemia commented Oct 23, 2023

https://jsonformatter.curiousconcept.com/# 這個可以自動修

@lucemia
Copy link
Contributor Author

lucemia commented Oct 23, 2023

不應該 escape '

@lucemia
Copy link
Contributor Author

lucemia commented Oct 23, 2023

截圖 2023-10-23 上午9 46 11

lucemia added a commit that referenced this issue Oct 23, 2023
lucemia added a commit that referenced this issue Oct 23, 2023
* fix #12 escaped unescaped character

* test more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant