Web3Daily commited on
Commit
43445b9
1 Parent(s): 5200c78

Update app.py

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