AI-DHD commited on
Commit
4fb90e1
1 Parent(s): 0ce4091

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -3,10 +3,13 @@ import openai
3
  import gradio as gr
4
 
5
  title = "Current fine-tuned GPT3, AI-DHD"
6
- description = "Your virtual ADHD coach designed by a Clinical Psychologist who has ADHD, named Alexander McLennan."
7
 
8
  def question_answer(context, question):
9
  openai.api_key = "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"
 
 
 
10
 
11
  response = openai.Completion.create(
12
  model="davinci:ft-placeholder-2022-12-10-04-13-26",
@@ -16,8 +19,6 @@ def question_answer(context, question):
16
  top_p=1,
17
  frequency_penalty=0.58,
18
  presence_penalty=1.25,
19
- start_sequence = "\\\n\nAI-DHD: "
20
- restart_sequence = "\\\n\nGeorge: "
21
  stop=["END", "\\", "\n"]
22
  )
23
 
 
3
  import gradio as gr
4
 
5
  title = "Current fine-tuned GPT3, AI-DHD"
6
+ description = "Your virtual ADHD coach, designed by a Clinical Psychologist who has ADHD, named Alexander McLennan."
7
 
8
  def question_answer(context, question):
9
  openai.api_key = "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"
10
+
11
+ start_sequence = "\\\n\nAI-DHD: "
12
+ restart_sequence = "\\\n\nGeorge: "
13
 
14
  response = openai.Completion.create(
15
  model="davinci:ft-placeholder-2022-12-10-04-13-26",
 
19
  top_p=1,
20
  frequency_penalty=0.58,
21
  presence_penalty=1.25,
 
 
22
  stop=["END", "\\", "\n"]
23
  )
24