Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ client = InferenceClient()
|
|
6 |
|
7 |
# Function to stream simplified text as it is generated
|
8 |
def simplify_text(input_text, audience):
|
9 |
-
prompt = f"
|
10 |
|
11 |
messages = [
|
12 |
{"role": "user", "content": prompt}
|
|
|
6 |
|
7 |
# Function to stream simplified text as it is generated
|
8 |
def simplify_text(input_text, audience):
|
9 |
+
prompt = f"Transform the following text into a clear and concise version suitable for a '{audience}' audience. Use language, tone, and style appropriate to their understanding level, while retaining the core meaning and key details:\n\n{input_text}"
|
10 |
|
11 |
messages = [
|
12 |
{"role": "user", "content": prompt}
|