Farhan1572 commited on
Commit
22f12a6
·
verified ·
1 Parent(s): 51f44fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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::9vME3GGg"
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.92,
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.