Removed unneccesary delete

This commit is contained in:
youssefsoli
2023-11-27 03:59:03 -05:00
parent d1d7a93b3d
commit df65145e3d
2 changed files with 0 additions and 34 deletions
-1
View File
@@ -213,7 +213,6 @@ def get_audio(UUID: UUID4):
raise HTTPException(status_code=404, detail="Audio not found")
if isinstance(PENDING_AUDIO[UUID], str):
audio_text = PENDING_AUDIO[UUID]
del PENDING_AUDIO[UUID]
response = openai_client.audio.speech.create(
model="tts-1",
voice="alloy",
-33
View File
@@ -1,33 +0,0 @@
> For the demo, language ∈ {EN_JA, EN_ZH-CN}
POST /ai-mark {
question: str,
user_answer: str,
expected: str,
chapter: str,
language: str
}
-> {correct: bool, reason: str}
POST /human-chat {
target_name: str,
target_hobbies: list\[str],
history: list\[{from\_me: bool, msg: str}],
language: str
}
-> {msg: str}
> Chat histories will be stored in localStorage
POST /recognize (Body is an audio file)
-> {text: str}
POST /character-chat {
character: str
history: list\[{from_me: bool, msg: str}]
language: str
}
-> {msg: str, audio: UUID}
GET /audio/{UUID}