akhvedelidze commited on
Commit
1281309
1 Parent(s): 2857d39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -16,8 +16,8 @@ def CustomChatGPT(user_input, command):
16
  ChatGPT_reply = response["choices"][0]["message"]["content"]
17
  messages.append({"role": "assistant", "content": ChatGPT_reply})
18
  # Set the engine properties
19
- engine.setProperty('rate', 150)
20
- engine.setProperty('volume', 1)
21
 
22
  # Convert text to speech
23
  #engine.say(ChatGPT_reply)
@@ -28,8 +28,7 @@ demo = gradio.Interface(
28
  fn=CustomChatGPT,
29
  inputs = ["text", gradio.Radio(["Provide source of the information", "subtract", "multiply", "divide"])],
30
  outputs = "text",
31
-
32
- title = "Psycology consultation")
33
 
34
 
35
  demo.launch()
 
16
  ChatGPT_reply = response["choices"][0]["message"]["content"]
17
  messages.append({"role": "assistant", "content": ChatGPT_reply})
18
  # Set the engine properties
19
+ #engine.setProperty('rate', 150)
20
+ #engine.setProperty('volume', 1)
21
 
22
  # Convert text to speech
23
  #engine.say(ChatGPT_reply)
 
28
  fn=CustomChatGPT,
29
  inputs = ["text", gradio.Radio(["Provide source of the information", "subtract", "multiply", "divide"])],
30
  outputs = "text",
31
+ title = "Psycology consultation")
 
32
 
33
 
34
  demo.launch()