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"Given the following {language} words, define each word and create an example sentence, with an explanation"
|
46 |
|
47 |
)
|
48 |
user_prompt = f"{system_prompt}\n\nText:\n{text}"
|
|
|
42 |
def make_flashcards(words, language):
|
43 |
|
44 |
system_prompt = (
|
45 |
+
f"Given the following {language} words, define each word and create an example sentence using the word, with an explanation. do this for every word. Respond with the word, the definition, the example sentence, and the translation of the example sentence"
|
46 |
|
47 |
)
|
48 |
user_prompt = f"{system_prompt}\n\nText:\n{text}"
|