mtyrrell commited on
Commit
22e749b
·
1 Parent(s): 8eb3c54

ts authentication

Browse files
Files changed (1) hide show
  1. app/main.py +2 -2
app/main.py CHANGED
@@ -105,8 +105,8 @@ def process_geojson_whisp(file_content: bytes, filename: str) -> tuple[str, dict
105
  tmp_file_path = tmp_file.name
106
 
107
  try:
108
- # Call WHISP API
109
- client = Client(WHISP_API_URL)
110
  result = client.predict(
111
  file=handle_file(tmp_file_path),
112
  api_name="/get_statistics"
 
105
  tmp_file_path = tmp_file.name
106
 
107
  try:
108
+ # Call WHISP API with authentication
109
+ client = Client(WHISP_API_URL, hf_token=hf_token)
110
  result = client.predict(
111
  file=handle_file(tmp_file_path),
112
  api_name="/get_statistics"