Web3Daily commited on
Commit
9aedc6d
1 Parent(s): d0b58b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -3
app.py CHANGED
@@ -15,11 +15,17 @@ def CustomChatGPT(user_input):
15
  messages.append({"role": "assistant", "content": ChatGPT_reply})
16
  return ChatGPT_reply
17
 
 
 
 
 
 
18
  demo = gr.Interface(
19
  fn=CustomChatGPT,
20
- inputs=gr.inputs.Text(label="Ask a question"),
21
- outputs = "text",
22
- title = "Web(GPT)3 Daily")
 
23
 
24
  demo.launch()
25
  iface.launch(inline=True)
 
15
  messages.append({"role": "assistant", "content": ChatGPT_reply})
16
  return ChatGPT_reply
17
 
18
+ def CustomChatGPT(input_text):
19
+ # Your function implementation
20
+ pass
21
+
22
+ # Create the interface with a labeled input component
23
  demo = gr.Interface(
24
  fn=CustomChatGPT,
25
+ inputs=gr.inputs.Text(label="Ask a question"),
26
+ outputs="text",
27
+ title="Web(GPT)3 Daily"
28
+ )
29
 
30
  demo.launch()
31
  iface.launch(inline=True)