Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -10,14 +10,14 @@ api_key = os.getenv("OPENAI_API_KEY")
|
|
10 |
client = OpenAI(api_key = api_key)
|
11 |
|
12 |
# finetuned model instance
|
13 |
-
finetuned_model = "ft:gpt-4o-mini-2024-07-18:cedarbyte-business-solutions::
|
14 |
|
15 |
# function to humanize the text
|
16 |
def humanize_text(AI_text):
|
17 |
"""Humanizes the provided AI text using the fine-tuned model."""
|
18 |
response = completion = client.chat.completions.create(
|
19 |
model=finetuned_model,
|
20 |
-
temperature = 0.
|
21 |
messages=[
|
22 |
{"role": "system", "content": """
|
23 |
You are a text humanizer.
|
|
|
10 |
client = OpenAI(api_key = api_key)
|
11 |
|
12 |
# finetuned model instance
|
13 |
+
finetuned_model = "ft:gpt-4o-mini-2024-07-18:cedarbyte-business-solutions::9vPeUsQP"
|
14 |
|
15 |
# function to humanize the text
|
16 |
def humanize_text(AI_text):
|
17 |
"""Humanizes the provided AI text using the fine-tuned model."""
|
18 |
response = completion = client.chat.completions.create(
|
19 |
model=finetuned_model,
|
20 |
+
temperature = 0.9,
|
21 |
messages=[
|
22 |
{"role": "system", "content": """
|
23 |
You are a text humanizer.
|