Spaces:
Running
Running
Download app/Http/Requests/Screen/ScreenRequest.php from Ailixir-AI-Team/ailixir-api: direct link, hf CLI and curl.
- Browser
- Download file 601 Bytes
-
https://huggingface.co/spaces/Ailixir-AI-Team/ailixir-api/resolve/77cc17e2fac3fd65fd67c85211ea723a94b90585/app/Http/Requests/Screen/ScreenRequest.php
- Command line
-
hf download hf://spaces/Ailixir-AI-Team/ailixir-api@77cc17e2fac3fd65fd67c85211ea723a94b90585/app/Http/Requests/Screen/ScreenRequest.php
-
curl -L -o ScreenRequest.php https://huggingface.co/spaces/Ailixir-AI-Team/ailixir-api/resolve/77cc17e2fac3fd65fd67c85211ea723a94b90585/app/Http/Requests/Screen/ScreenRequest.php
601 Bytes
| namespace App\Http\Requests\Screen; | |
| use Illuminate\Foundation\Http\FormRequest; | |
| class ScreenRequest extends FormRequest | |
| { | |
| public function authorize(): bool | |
| { | |
| return true; | |
| } | |
| public function rules(): array | |
| { | |
| return [ | |
| 'disease_name' => ['required', 'string', 'max:255'], | |
| 'known_drugs' => ['sometimes', 'array'], | |
| 'known_drugs.*' => ['string'], | |
| 'min_score' => ['sometimes', 'numeric', 'min:0', 'max:1'], | |
| 'top_n_targets' => ['sometimes', 'integer', 'min:1', 'max:100'], | |
| ]; | |
| } | |
| } | |