enabled open mic for simple chatbot demo
This commit is contained in:
@@ -35,7 +35,7 @@ SERVE_STATIC = True
|
|||||||
STATIC_DIR = "../web-ui/dist"
|
STATIC_DIR = "../web-ui/dist"
|
||||||
STATIC_ROUTE = "/static"
|
STATIC_ROUTE = "/static"
|
||||||
STATIC_INDEX = "index.html"
|
STATIC_INDEX = "index.html"
|
||||||
USE_OPEN_MIC = False # Can the user freely talk, or do they need to wait their turn?
|
USE_OPEN_MIC = True # Can the user freely talk, or do they need to wait their turn?
|
||||||
|
|
||||||
# ----------------- API ----------------- #
|
# ----------------- API ----------------- #
|
||||||
|
|
||||||
@@ -87,7 +87,7 @@ async def start_bot(request: Request) -> JSONResponse:
|
|||||||
|
|
||||||
if not room_url:
|
if not room_url:
|
||||||
try:
|
try:
|
||||||
room_url, room_name = create_room()
|
room_url = create_room()
|
||||||
except Exception:
|
except Exception:
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=500,
|
status_code=500,
|
||||||
|
|||||||
Reference in New Issue
Block a user