Jump to content

danx994

New Members
  • Posts

    3
  • Joined

  • Last visited

danx994's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. This code outputs "{"detail":"Not Found"}", a similar request in Python works. I don't understand what the problem is with PHP.
  2. $api_url = "https://choimirai-whisper-large-v3.hf.space/predict_2"; $data = array( 'input_text' => 'https://www.youtube.com/watch?v=rotd-kaCX8c&t', 'task_name' => 'transcribe', 'return_timestamps' => true, 'language' => 'English' ); $ch = curl_init($api_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); $response = curl_exec($ch); curl_close($ch); echo $response;
  3. Hi all! Guys, can anyone help me write code for a request to the huggingface API in php? For example on: https://huggingface.co/spaces/choimirai/whisper-large-v3 I try everything in PHP but nothing works. Thank you!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.