mirror of
https://github.com/DinoMalin/paranoia-1.0.git
synced 2025-10-29 19:05:59 +00:00
feat: finitions
This commit is contained in:
parent
fa7867cb1d
commit
7fe7ae5b49
@ -1 +1,3 @@
|
|||||||
OPENAI_API_KEY=...
|
OPENAI_API_KEY=...
|
||||||
|
SPEECH_KEY=...
|
||||||
|
REGION=...
|
||||||
|
|||||||
10
ai.py
10
ai.py
@ -112,10 +112,12 @@ def ask_ai(prompt):
|
|||||||
print(data["emotion"])
|
print(data["emotion"])
|
||||||
print(data["score"])
|
print(data["score"])
|
||||||
|
|
||||||
i = 0
|
|
||||||
while True:
|
try:
|
||||||
ask_ai(listen_voice())
|
while True:
|
||||||
i += 1
|
ask_ai(listen_voice())
|
||||||
|
except:
|
||||||
|
print("Program stopped.")
|
||||||
|
|
||||||
# send_emotion("Complice")
|
# send_emotion("Complice")
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user