Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
ts authentication
Browse files- 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"
|