Web3Daily commited on
Commit
c2c8cd7
1 Parent(s): dbce987

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import openai
2
- import gradio
3
 
4
  openai.api_key = "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"
5
 
@@ -15,9 +15,9 @@ def CustomChatGPT(user_input):
15
  messages.append({"role": "assistant", "content": ChatGPT_reply})
16
  return ChatGPT_reply
17
 
18
- demo = gradio.Interface(
19
  fn=CustomChatGPT,
20
- inputs = "text" label = "Ask a question",
21
  outputs = "text",
22
  title = "Web(GPT)3 Daily")
23
 
 
1
  import openai
2
+ import gradio as gr
3
 
4
  openai.api_key = "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"
5
 
 
15
  messages.append({"role": "assistant", "content": ChatGPT_reply})
16
  return ChatGPT_reply
17
 
18
+ demo = gr.Interface(
19
  fn=CustomChatGPT,
20
+ inputs = "text",
21
  outputs = "text",
22
  title = "Web(GPT)3 Daily")
23