Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio
|
|
3 |
|
4 |
openai.api_key = "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"
|
5 |
|
6 |
-
messages = [{"role": "system", "content": "You are a
|
7 |
|
8 |
def CustomChatGPT(user_input):
|
9 |
messages.append({"role": "user", "content": user_input})
|
@@ -12,5 +12,5 @@ def CustomChatGPT(user_input):
|
|
12 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
13 |
return ChatGPT_reply
|
14 |
|
15 |
-
demo = gradio.Interface(fn=CustomChatGPT, inputs = "text", outputs = "text", title = "
|
16 |
demo.launch()
|
|
|
3 |
|
4 |
openai.api_key = "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"
|
5 |
|
6 |
+
messages = [{"role": "system", "content": "You are a chatbot"}]
|
7 |
|
8 |
def CustomChatGPT(user_input):
|
9 |
messages.append({"role": "user", "content": user_input})
|
|
|
12 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
13 |
return ChatGPT_reply
|
14 |
|
15 |
+
demo = gradio.Interface(fn=CustomChatGPT, inputs = "text", outputs = "text", title = "Harsh Gupta's ChatBot")
|
16 |
demo.launch()
|