Web3Daily commited on
Commit
035504a
1 Parent(s): 24b48d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,7 +16,7 @@ def CustomChatGPT(user_input):
16
  messages.append({"role": "assistant", "content": ChatGPT_reply})
17
  return ChatGPT_reply
18
 
19
- WebGPT3 = gr.Interface(
20
  fn=CustomChatGPT,
21
  inputs=gr.Textbox(label="Ask a question:", placeholder="E.g. What are gas fees? ...Can you simplify that with an analogy?"),
22
  outputs=gr.Textbox(label="Answer:"),
@@ -24,5 +24,5 @@ WebGPT3 = gr.Interface(
24
  live=False
25
  )
26
 
27
- WebGPT3.launch()
28
 
 
16
  messages.append({"role": "assistant", "content": ChatGPT_reply})
17
  return ChatGPT_reply
18
 
19
+ demo = gr.Interface(
20
  fn=CustomChatGPT,
21
  inputs=gr.Textbox(label="Ask a question:", placeholder="E.g. What are gas fees? ...Can you simplify that with an analogy?"),
22
  outputs=gr.Textbox(label="Answer:"),
 
24
  live=False
25
  )
26
 
27
+ demo.launch()
28