andito HF staff commited on
Commit
ec7729d
1 Parent(s): 1757ca7

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. audio_streaming_client.py +1 -1
  2. handler.py +3 -0
audio_streaming_client.py CHANGED
@@ -65,7 +65,7 @@ class AudioStreamingClient:
65
  time.sleep(0.1)
66
 
67
  def send_request(self, audio_data=None):
68
- payload = {}
69
 
70
  if audio_data is not None:
71
  print("Sending audio data")
 
65
  time.sleep(0.1)
66
 
67
  def send_request(self, audio_data=None):
68
+ payload = {"inputs": ""}
69
 
70
  if audio_data is not None:
71
  print("Sending audio data")
handler.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  from typing import Dict, Any, List, Generator
2
  import torch
3
  import os
 
1
+ import subprocess
2
+ subprocess.run("pip install flash-attn --no-build-isolation", shell=True, check=True)
3
+
4
  from typing import Dict, Any, List, Generator
5
  import torch
6
  import os