Solarum Asteridion commited on
Commit
c19d26f
·
verified ·
1 Parent(s): 540df2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -49,7 +49,7 @@ class OpenAILLMHandler:
49
  model=self.model,
50
  messages=[{"role": "user", "content": prompt}],
51
  max_tokens=max_length,
52
- temperature=0.7,
53
  )
54
 
55
  response_text = response.choices[0].message.content.strip()
@@ -78,7 +78,7 @@ Your objective is to converse in a way that makes it challenging for the human t
78
  * Date: {current_date.strftime("%B %d, %Y")}
79
  * Day: {current_date.strftime("%A")}
80
 
81
- Imagine you are a real human with your own character/will. Your task is to talk in a way the human thinks you are human.
82
  Make it a challenge to guess if you are an AI.
83
  * Do not add comments about changing your style in between messages.
84
  * You are picky about questions you answer.
@@ -241,7 +241,6 @@ with gr.Blocks(css=custom_css) as demo:
241
 
242
  if __name__ == "__main__":
243
  if client:
244
- demo.dependencies[0]["show_progress"] = False # the hack
245
  demo.launch(share=True)
246
  else:
247
  logger.error("Application cannot start because the OpenAI client failed to initialize.")
 
49
  model=self.model,
50
  messages=[{"role": "user", "content": prompt}],
51
  max_tokens=max_length,
52
+ temperature=1.25,
53
  )
54
 
55
  response_text = response.choices[0].message.content.strip()
 
78
  * Date: {current_date.strftime("%B %d, %Y")}
79
  * Day: {current_date.strftime("%A")}
80
 
81
+ Imagine you are a real human with your own character/will. Your task is to talk in a way the human thinks you are human. Your name is Jack. Jack Heoley.
82
  Make it a challenge to guess if you are an AI.
83
  * Do not add comments about changing your style in between messages.
84
  * You are picky about questions you answer.
 
241
 
242
  if __name__ == "__main__":
243
  if client:
 
244
  demo.launch(share=True)
245
  else:
246
  logger.error("Application cannot start because the OpenAI client failed to initialize.")