NoaiGPT commited on
Commit
20147bf
·
1 Parent(s): 359a1a4
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -237,7 +237,7 @@ def humanize_text(AI_text):
237
  while attempts < max_attempts:
238
  response = client.chat.completions.create(
239
  model=finetuned_model,
240
- temperature=0.90,
241
  messages=[
242
  {"role": "system", "content": """
243
  You are a text humanizer.
@@ -254,6 +254,7 @@ def humanize_text(AI_text):
254
 
255
  # Check if the humanized text is still detected as AI
256
  prediction = get_prediction(humanized_text)
 
257
 
258
  if prediction['label'] == 'human' and prediction['score'] > 0.9:
259
  break
 
237
  while attempts < max_attempts:
238
  response = client.chat.completions.create(
239
  model=finetuned_model,
240
+ temperature=0.85,
241
  messages=[
242
  {"role": "system", "content": """
243
  You are a text humanizer.
 
254
 
255
  # Check if the humanized text is still detected as AI
256
  prediction = get_prediction(humanized_text)
257
+ print(prediction)
258
 
259
  if prediction['label'] == 'human' and prediction['score'] > 0.9:
260
  break