Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def ocr_inference(img, lang):
|
|
42 |
def make_flashcards(words, language):
|
43 |
|
44 |
system_prompt = (
|
45 |
-
f"for each {language} word,
|
46 |
|
47 |
)
|
48 |
user_prompt = f"{system_prompt}\n\nWords:\n{words}"
|
|
|
42 |
def make_flashcards(words, language):
|
43 |
|
44 |
system_prompt = (
|
45 |
+
f"for each {language} word in the list, write a flashcard in this format: the word, then its definition, then an example sentence using the word, and then a translation of example sentence"
|
46 |
|
47 |
)
|
48 |
user_prompt = f"{system_prompt}\n\nWords:\n{words}"
|