Web3Daily commited on
Commit
dd8007e
1 Parent(s): 23063a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -14,12 +14,10 @@ def CustomChatGPT(user_input):
14
  ChatGPT_reply = response["choices"][0]["message"]["content"]
15
  messages.append({"role": "assistant", "content": ChatGPT_reply})
16
  return ChatGPT_reply
17
-
18
- text = "Ask a question"
19
 
20
  demo = gr.Interface(
21
  fn=CustomChatGPT,
22
- inputs=text,
23
  outputs="text",
24
  title="Web(GPT)3",
25
  description = "Ask a question about Web3, get a simple answer, in plain English."
 
14
  ChatGPT_reply = response["choices"][0]["message"]["content"]
15
  messages.append({"role": "assistant", "content": ChatGPT_reply})
16
  return ChatGPT_reply
 
 
17
 
18
  demo = gr.Interface(
19
  fn=CustomChatGPT,
20
+ inputs=Ask a question,
21
  outputs="text",
22
  title="Web(GPT)3",
23
  description = "Ask a question about Web3, get a simple answer, in plain English."