Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ def humanize_text(AI_text):
|
|
| 32 |
]
|
| 33 |
)
|
| 34 |
|
| 35 |
-
|
| 36 |
humanized_text = re.sub(r'[^A-Za-z0-9\s]', '', humanized_text)
|
| 37 |
|
| 38 |
return humanized_text
|
|
|
|
| 32 |
]
|
| 33 |
)
|
| 34 |
|
| 35 |
+
humanized_text = response.choices[0].message.content.strip()
|
| 36 |
humanized_text = re.sub(r'[^A-Za-z0-9\s]', '', humanized_text)
|
| 37 |
|
| 38 |
return humanized_text
|