Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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,
|
| 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}"
|