Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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(
|
|
|
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()
|