Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ messages = [{"role": "system", "content": "You are a Web3 and cryptocurrency exp
|
|
7 |
|
8 |
def CustomChatGPT(user_input):
|
9 |
messages.append({"role": "user", "content": user_input})
|
|
|
10 |
response = openai.ChatCompletion.create(
|
11 |
model="gpt-3.5-turbo",
|
12 |
messages=messages
|
@@ -17,7 +18,7 @@ def CustomChatGPT(user_input):
|
|
17 |
|
18 |
demo = gr.Interface(
|
19 |
fn=CustomChatGPT,
|
20 |
-
inputs = "text"
|
21 |
outputs="text",
|
22 |
title="Web(GPT)3 Daily"
|
23 |
)
|
|
|
7 |
|
8 |
def CustomChatGPT(user_input):
|
9 |
messages.append({"role": "user", "content": user_input})
|
10 |
+
placeholder="Ask a question",
|
11 |
response = openai.ChatCompletion.create(
|
12 |
model="gpt-3.5-turbo",
|
13 |
messages=messages
|
|
|
18 |
|
19 |
demo = gr.Interface(
|
20 |
fn=CustomChatGPT,
|
21 |
+
inputs = "text",
|
22 |
outputs="text",
|
23 |
title="Web(GPT)3 Daily"
|
24 |
)
|