Web3Daily commited on
Commit
a7a69b5
1 Parent(s): 8e84275

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -14,12 +14,13 @@ 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="Ask a question:", placeholder="E.g. What are gas fees?"),
21
  outputs=gr.Textbox(label="Get a super simple answer:"),
22
- css="style.css",
23
  title="Web(GPT)3"
24
  )
25
 
 
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(css=".gradio-container {background-color: white}") as
19
 
20
  demo = gr.Interface(
21
  fn=CustomChatGPT,
22
  inputs=gr.Textbox(label="Ask a question:", placeholder="E.g. What are gas fees?"),
23
  outputs=gr.Textbox(label="Get a super simple answer:"),
 
24
  title="Web(GPT)3"
25
  )
26