Web3Daily commited on
Commit
88a7c1b
1 Parent(s): 87274b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,9 +15,9 @@ def CustomChatGPT(Question):
15
  messages.append({"role": "assistant", "content": ChatGPT_reply})
16
  return ChatGPT_reply
17
 
18
- with gr.Blocks(theme=gr.themes.Glass()) as demo:
19
- demo = gr.Interface(
20
  fn=CustomChatGPT,
 
21
  inputs=gr.Textbox(label="Insert jargon here (ask a question):", placeholder="E.g. What are gas fees?"),
22
  outputs=gr.Textbox(label="Get a simple answer in return:"),
23
  title="Web(GPT)3"
 
15
  messages.append({"role": "assistant", "content": ChatGPT_reply})
16
  return ChatGPT_reply
17
 
18
+ demo = gr.Blocks(
 
19
  fn=CustomChatGPT,
20
+ theme=gr.themes.Glass()
21
  inputs=gr.Textbox(label="Insert jargon here (ask a question):", placeholder="E.g. What are gas fees?"),
22
  outputs=gr.Textbox(label="Get a simple answer in return:"),
23
  title="Web(GPT)3"