What happened?
PHP Fatal error: Uncaught WebSocket\ConnectionException: Connection to 'wss://9797a8c499d50575a3.gradio.live/queue/join' failed: Server sent invalid upgrade response: HTTP/1.1 403 Forbidden
How to reproduce the bug
<?php
require __DIR__ . '/vendor/autoload.php';
use SergiX44\Gradio\Client;
$client = new Client('https://aefe63bef807636ece.gradio.live/');
$result = $client->predict(["Hello!!"], apiName: '/predict');
echo $result;
?>
I have one prompt for text (as input) and expected to generate one picture (as output)
Use via Python client API:
from gradio_client import Client
client = Client("https://aefe63bef807636ece.gradio.live/")
result = client.predict(
"Hello!!", # str in 'prompt' Textbox component
api_name="/predict"
)
print(result)
Use via Javascript client API:
import { client } from "@gradio/client";
const app = await client("https://aefe63bef807636ece.gradio.live/");
const result = await app.predict("/predict", [
"Hello!!", // string in 'prompt' Textbox component
]);
console.log(result.data);
Package Version
2.0.0
PHP Version
8.2.0
Which operating systems does with happen with?
Linux
Notes
No response
What happened?
PHP Fatal error: Uncaught WebSocket\ConnectionException: Connection to 'wss://9797a8c499d50575a3.gradio.live/queue/join' failed: Server sent invalid upgrade response: HTTP/1.1 403 Forbidden
How to reproduce the bug
I have one prompt for text (as input) and expected to generate one picture (as output)
Use via Python client API:
Use via Javascript client API:
Package Version
2.0.0
PHP Version
8.2.0
Which operating systems does with happen with?
Linux
Notes
No response