File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed
docs/inference-providers/guides Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -317,16 +317,7 @@ We're using automatic provider selection which will choose the best available pr
317317<hfoptions id="deployment">
318318<hfoption id="python">
319319
320- To deploy, we'll need to create a ` requirements .txt ` file and a ` app .py ` file.
321-
322- ` requirements .txt ` :
323-
324- ` ` ` txt
325- gradio
326- huggingface_hub
327- ` ` `
328-
329- ` app .py ` :
320+ To deploy, we'll need to create an ` app .py ` file and upload it to Hugging Face Spaces.
330321
331322<details>
332323<summary><strong>📋 Click to view the complete app.py file</strong></summary>
@@ -337,8 +328,8 @@ from huggingface_hub import InferenceClient
337328
338329
339330def transcribe_audio (audio_file_path):
340- " " " Transcribe audio using fal.ai for speed " " "
341- client = InferenceClient (provider= " fal-ai " )
331+ " " " Transcribe audio using an Inference Provider " " "
332+ client = InferenceClient (provider= " auto " )
342333
343334 # Pass the file path directly - the client handles file reading
344335 transcript = client .automatic_speech_recognition (
@@ -367,7 +358,7 @@ def generate_summary(transcript):
367358 " " "
368359
369360 response = client .chat .completions .create (
370- model= " Qwen/Qwen3-235B-A22B-FP8 " ,
361+ model= " deepseek-ai/DeepSeek-R1-0528 " ,
371362 messages= [{" role" : " user" , " content" : prompt}],
372363 max_tokens= 1000 ,
373364 )
You can’t perform that action at this time.
0 commit comments