seawolf2357 commited on
Commit
699ea5d
Β·
1 Parent(s): 02665d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -28,14 +28,14 @@ def generate_audio(text, voice_name):
28
  response = requests.post(url, json=payload, headers=headers, stream=True)
29
 
30
  if response.status_code == 200:
31
-
32
- chunks = []
33
  for chunk in response.iter_content(chunk_size=CHUNK_SIZE):
34
  chunks.append(chunk)
35
  return b''.join(chunks)
36
  else:
37
  raise Exception(f"였λ₯˜ λ°œμƒ. μƒνƒœ μ½”λ“œ: {response.status_code}")
38
- CHUNK_SIZE = 300
 
39
 
40
 
41
  # Gradio μΈν„°νŽ˜μ΄μŠ€ μ •μ˜
 
28
  response = requests.post(url, json=payload, headers=headers, stream=True)
29
 
30
  if response.status_code == 200:
31
+ chunks = []
 
32
  for chunk in response.iter_content(chunk_size=CHUNK_SIZE):
33
  chunks.append(chunk)
34
  return b''.join(chunks)
35
  else:
36
  raise Exception(f"였λ₯˜ λ°œμƒ. μƒνƒœ μ½”λ“œ: {response.status_code}")
37
+
38
+ CHUNK_SIZE = 1024
39
 
40
 
41
  # Gradio μΈν„°νŽ˜μ΄μŠ€ μ •μ˜