yasserrmd commited on
Commit
59e64b5
·
verified ·
1 Parent(s): 32003ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"Simplify the following text for a '{audience}' audience:\n\n{input_text}"
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}