Farhan1572 commited on
Commit
776fa07
1 Parent(s): dcf3cfa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -121,16 +121,17 @@ def humanize_text(AI_text):
121
  model=finetuned_model,
122
  messages=[
123
  {"role": "system", "content": """
124
- You are a text humanizer.
125
- You humanize AI generated text.
126
- The text must appear like humanly written.
127
  THE INPUT AND THE OUTPUT TEXT SHOULD HAVE THE SAME FORMAT.
128
  THE HEADINGS AND THE BULLETS IN THE INPUT SHOULD REMAIN IN PLACE"""},
129
  {"role": "user", "content": f"Your output SHOULD NOT CONTAIN ANY OF THE WORD FROM THE LIST OF WORDS: {list_of_ai_words}"},
 
130
  {"role": "user", "content": f"Humanize the text. Keep the output format i.e. the bullets and the headings as it is and dont use the list of words that are not permissible. \nTEXT: {AI_text}"}
131
  ]
132
  )
133
-
134
 
135
  return response.choices[0].message.content.strip()
136
 
 
121
  model=finetuned_model,
122
  messages=[
123
  {"role": "system", "content": """
124
+ You are a text humanizer.
125
+ You humanize AI generated text.
126
+ The text must appear like humanly written.
127
  THE INPUT AND THE OUTPUT TEXT SHOULD HAVE THE SAME FORMAT.
128
  THE HEADINGS AND THE BULLETS IN THE INPUT SHOULD REMAIN IN PLACE"""},
129
  {"role": "user", "content": f"Your output SHOULD NOT CONTAIN ANY OF THE WORD FROM THE LIST OF WORDS: {list_of_ai_words}"},
130
+ {"role": "user", "content": f"THE LANGUAGE OF THE INPUT AND THE OUTPUT MUST BE SAME. THE SENTENCES SHOULD NOT BE SHORT LENGTH - THEY SHOULD BE SAME AS IN THE INPUT. ALSO THE PARAGRAPHS SHOULD NOT BE SHORT EITHER - PARAGRAPHS MUST HAVE THE SAME LENGTH"},
131
  {"role": "user", "content": f"Humanize the text. Keep the output format i.e. the bullets and the headings as it is and dont use the list of words that are not permissible. \nTEXT: {AI_text}"}
132
  ]
133
  )
134
+
135
 
136
  return response.choices[0].message.content.strip()
137