Spaces:
Runtime error
Runtime error
asd
Browse files
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.
|
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
|