andito HF staff commited on
Commit
f6f039f
1 Parent(s): 51fa508

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. handler.py +2 -2
handler.py CHANGED
@@ -22,7 +22,7 @@ class EndpointHandler:
22
  self.parler_tts_handler_kwargs,
23
  self.melo_tts_handler_kwargs,
24
  self.chat_tts_handler_kwargs,
25
- ) = get_default_arguments(mode='none', log_level='DEBUG')
26
  setup_logger(self.module_kwargs.log_level)
27
 
28
  prepare_all_args(
@@ -87,7 +87,7 @@ class EndpointHandler:
87
  self.output_collector_thread.start()
88
 
89
  input_type = data.get("input_type", "text")
90
- input_data = data.get("input", "")
91
 
92
  if input_type == "speech":
93
  # Convert input audio data to numpy array
 
22
  self.parler_tts_handler_kwargs,
23
  self.melo_tts_handler_kwargs,
24
  self.chat_tts_handler_kwargs,
25
+ ) = get_default_arguments(mode='none', lm_model_name='meta-llama/Meta-Llama-3.1-8B-Instruct', log_level='DEBUG')
26
  setup_logger(self.module_kwargs.log_level)
27
 
28
  prepare_all_args(
 
87
  self.output_collector_thread.start()
88
 
89
  input_type = data.get("input_type", "text")
90
+ input_data = data.get("inputs", "")
91
 
92
  if input_type == "speech":
93
  # Convert input audio data to numpy array