Skip to content

Commit 64017a0

Browse files
sergix44github-actions[bot]
authored andcommitted
Fix styling
1 parent 8262fd3 commit 64017a0

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ private function sseLoop(Endpoint $endpoint, array $payload, string $protocol, ?
200200
'session_hash' => $this->sessionHash,
201201
]);
202202

203-
204203
if ($response->getStatusCode() === 503) {
205204
throw new QueueFullException();
206205
}
@@ -224,7 +223,7 @@ private function sseLoop(Endpoint $endpoint, array $payload, string $protocol, ?
224223

225224
$buffer = '';
226225
$message = null;
227-
while (!$response->getBody()->eof()) {
226+
while (! $response->getBody()->eof()) {
228227
$data = $response->getBody()->read(1);
229228
if ($data !== "\n") {
230229
$buffer .= $data;
@@ -252,6 +251,7 @@ private function sseLoop(Endpoint $endpoint, array $payload, string $protocol, ?
252251
throw new GradioException('Error sending data');
253252
}
254253
$buffer = '';
254+
255255
continue;
256256
}
257257

tests/ExampleTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
$client->predict([], fnIndex: 5, raw: true);
3030
$client->predict(['hi'], fnIndex: 1, raw: true);
3131
$client->predict([null, []], fnIndex: 2, raw: true);
32-
$response = $client->predict([null, null, "", 0.9, 256, 0.9, 1.2], fnIndex: 3);
32+
$response = $client->predict([null, null, '', 0.9, 256, 0.9, 1.2], fnIndex: 3);
3333
$client->predict([], fnIndex: 6, raw: true);
3434

3535
$outputs = $response->getOutputs();
@@ -39,7 +39,7 @@
3939

4040
it('can test fnindexsudgugdhs', function () {
4141
$client = new Client('https://deepseek-ai-deepseek-vl-7b.hf.space');
42-
$response = $client->predict([[["Hello!", null]], 0, 0, 0, 0, 0, 'DeepSeek-VL 7B'], apiName: '/predict');
42+
$response = $client->predict([[['Hello!', null]], 0, 0, 0, 0, 0, 'DeepSeek-VL 7B'], apiName: '/predict');
4343

4444
$value = $response->getOutput();
4545

0 commit comments

Comments
 (0)