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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,7 +5,7 @@ import gradio as gr
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: "
@@ -27,4 +27,4 @@ gr.Interface(
27
  [gr.inputs.Textbox(label="Context",lines=40)],
28
  [gr.outputs.Textbox(label="Response")],
29
  title=title,
30
- description=description).launch(enable_queue=True,cache_examples=True)
 
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 inference(context, question):
9
  openai.api_key = "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"
10
 
11
  start_sequence = "\\\n\nAI-DHD: "
 
27
  [gr.inputs.Textbox(label="Context",lines=40)],
28
  [gr.outputs.Textbox(label="Response")],
29
  title=title,
30
+ description=description).launch()