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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -14,13 +14,16 @@ def CustomChatGPT(Question):
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=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
 
26
 
 
14
  ChatGPT_reply = response["choices"][0]["message"]["content"]
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
  )
28
 
29