dimasdeffieux commited on
Commit
be9ddac
·
verified ·
1 Parent(s): c82243e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", torch_
15
 
16
  def text_inference(text, language):
17
  system_prompt = (
18
- f"Given the following {language} text, extract all words in their base (dictionary) form, including verbs, adjectives, nouns, and particles. "
19
  "Remove all duplicates. Return the base form words as a comma-separated list, and nothing else."
20
  )
21
  user_prompt = f"{system_prompt}\n\nText:\n{text}"
 
15
 
16
  def text_inference(text, language):
17
  system_prompt = (
18
+ f"Given the following {language} text, convert each word into their base form, and store in a list"
19
  "Remove all duplicates. Return the base form words as a comma-separated list, and nothing else."
20
  )
21
  user_prompt = f"{system_prompt}\n\nText:\n{text}"