Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ description = " A safe space to talk about your feelings. Resources available. E
|
|
8 |
#examples = [["How are you?"]]
|
9 |
|
10 |
# Define input and output objects with labels
|
11 |
-
input_text = gr.inputs.Textbox(label="You", placeholder="Enter your message here")
|
12 |
-
output_text = gr.outputs.Textbox(label="Chatbot Response")
|
13 |
|
14 |
tokenizer = AutoTokenizer.from_pretrained("microsoft/DialoGPT-large")
|
15 |
model = AutoModelForCausalLM.from_pretrained("microsoft/DialoGPT-large")
|
@@ -46,10 +46,10 @@ gr.Interface(
|
|
46 |
title=title,
|
47 |
description=description,
|
48 |
examples=examples,
|
49 |
-
inputs=input_text,
|
50 |
-
outputs=output_text,
|
51 |
-
|
52 |
-
|
53 |
theme="finlaymacklon/boxy_violet",
|
54 |
).launch()
|
55 |
|
|
|
8 |
#examples = [["How are you?"]]
|
9 |
|
10 |
# Define input and output objects with labels
|
11 |
+
#input_text = gr.inputs.Textbox(label="You", placeholder="Enter your message here")
|
12 |
+
#output_text = gr.outputs.Textbox(label="Chatbot Response")
|
13 |
|
14 |
tokenizer = AutoTokenizer.from_pretrained("microsoft/DialoGPT-large")
|
15 |
model = AutoModelForCausalLM.from_pretrained("microsoft/DialoGPT-large")
|
|
|
46 |
title=title,
|
47 |
description=description,
|
48 |
examples=examples,
|
49 |
+
#inputs=input_text,
|
50 |
+
#outputs=output_text,
|
51 |
+
inputs=["text", "state"],
|
52 |
+
outputs=["chatbot", "state"],
|
53 |
theme="finlaymacklon/boxy_violet",
|
54 |
).launch()
|
55 |
|