Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ class TextPostProcessor:
|
|
48 |
"""بازنویسی متن با مدل instruction-tuned"""
|
49 |
if not text or not self.llm:
|
50 |
return text
|
51 |
-
prompt = f"متن زیر را
|
52 |
try:
|
53 |
result = self.llm(prompt, max_length=256, num_return_sequences=1)
|
54 |
enhanced_text = result[0]['generated_text'].strip()
|
|
|
48 |
"""بازنویسی متن با مدل instruction-tuned"""
|
49 |
if not text or not self.llm:
|
50 |
return text
|
51 |
+
prompt = f"متن زیر را کامل کن:\n{text}"
|
52 |
try:
|
53 |
result = self.llm(prompt, max_length=256, num_return_sequences=1)
|
54 |
enhanced_text = result[0]['generated_text'].strip()
|