Update app.py
Browse files
app.py
CHANGED
@@ -17,6 +17,9 @@ def CustomChatGPT(user_input):
|
|
17 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
18 |
return ChatGPT_reply
|
19 |
|
20 |
-
demo = gr.Interface(fn=CustomChatGPT, inputs = "text", outputs = "text",
|
|
|
|
|
|
|
21 |
|
22 |
demo.launch()
|
|
|
17 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
18 |
return ChatGPT_reply
|
19 |
|
20 |
+
demo = gr.Interface(fn=CustomChatGPT, inputs = "text", outputs = "text",
|
21 |
+
inputs=gr.inputs.Textbox(lines=7, label="Query"),
|
22 |
+
outputs=gr.outputs.Textbox(label="Response"),
|
23 |
+
title = "I am Stephane AI and my name is Cameron")
|
24 |
|
25 |
demo.launch()
|