Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,8 +14,7 @@ model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", torch_
|
|
14 |
|
15 |
def text_inference(text, language):
|
16 |
system_prompt = (
|
17 |
-
f"Given the following {language} text, convert each word into their base form
|
18 |
-
"Remove all duplicates. Return the base form words as a comma-separated list, and nothing else."
|
19 |
)
|
20 |
user_prompt = f"{system_prompt}\n\nText:\n{text}"
|
21 |
|
|
|
14 |
|
15 |
def text_inference(text, language):
|
16 |
system_prompt = (
|
17 |
+
f"Given the following {language} text, convert each word into their base form. Remove all duplicates. Return the base form words as a comma-separated list, and nothing else."
|
|
|
18 |
)
|
19 |
user_prompt = f"{system_prompt}\n\nText:\n{text}"
|
20 |
|