Web3Daily commited on
Commit
ee40aa4
1 Parent(s): 4a11d11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,6 @@ 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
- label="Ask a question"
11
  response = openai.ChatCompletion.create(
12
  model="gpt-3.5-turbo",
13
  messages=messages
@@ -21,6 +20,7 @@ demo = gr.Interface(
21
  inputs = "text",
22
  outputs="text",
23
  title="Web(GPT)3 Daily"
 
24
  )
25
 
26
  demo.launch()
 
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
 
20
  inputs = "text",
21
  outputs="text",
22
  title="Web(GPT)3 Daily"
23
+ textbox = gr.Textbox(label="Ask a question", placeholder="What's a gas fee?", lines=2)
24
  )
25
 
26
  demo.launch()