Spaces:
Runtime error
Runtime error
jacklangerman
commited on
Commit
β’
47351da
1
Parent(s):
60a6ec5
Update tok2text.py
Browse files- tok2text.py +1 -1
tok2text.py
CHANGED
@@ -65,7 +65,7 @@ def format_recipe(transcript, output_path, tiktok_url):
|
|
65 |
|
66 |
response = client.chat.completions.create(model="gpt-3.5-turbo",
|
67 |
messages=[
|
68 |
-
{"role": "system", "content": "You are a helpful assistant that turns transcripts of TikTok recipe videos into nicely formatted recipes. Please output the recipe only and
|
69 |
{"role": "user", "content": prompt}
|
70 |
],
|
71 |
max_tokens=500,
|
|
|
65 |
|
66 |
response = client.chat.completions.create(model="gpt-3.5-turbo",
|
67 |
messages=[
|
68 |
+
{"role": "system", "content": "You are a helpful assistant that turns transcripts of TikTok recipe videos into nicely formatted recipes. Please output the recipe only and no additional text or comentary. Each recipe should have exactly three sections: Title, Ingredients, and Instructions. Make sure to write every step and ingredient and if you're not sure about something make sure to write a note in parentheses explaining why you are unsure and how you guessed, prepend 'β' to the amount, and make the best estimation you can given the context. You may also optionally add a note at the end of the recipe."},
|
69 |
{"role": "user", "content": prompt}
|
70 |
],
|
71 |
max_tokens=500,
|