Helw150 commited on
Commit
64e2453
1 Parent(s): c80e82b

Fix FileName

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -127,7 +127,7 @@ def response(state: AppState):
127
 
128
  file_name = f"/tmp/{xxhash.xxh32(bytes(state.stream)).hexdigest()}.wav"
129
 
130
- sf.write(f"{x}.wav", state.stream, state.sampling_rate, format="wav")
131
 
132
  state.conversation.append(
133
  {"role": "user", "content": {"path": file_name, "mime_type": "audio/wav"}}
 
127
 
128
  file_name = f"/tmp/{xxhash.xxh32(bytes(state.stream)).hexdigest()}.wav"
129
 
130
+ sf.write(file_name, state.stream, state.sampling_rate, format="wav")
131
 
132
  state.conversation.append(
133
  {"role": "user", "content": {"path": file_name, "mime_type": "audio/wav"}}