Spaces:
Running
Running
Download app/Models/ChemicalCompound.php from Ailixir-AI-Team/ailixir-api: direct link, hf CLI and curl.
- Browser
- Download file 535 Bytes
-
https://huggingface.co/spaces/Ailixir-AI-Team/ailixir-api/resolve/ff99aeb50b353a35a7604091bfc7cfb19505bf44/app/Models/ChemicalCompound.php
- Command line
-
hf download hf://spaces/Ailixir-AI-Team/ailixir-api@ff99aeb50b353a35a7604091bfc7cfb19505bf44/app/Models/ChemicalCompound.php
-
curl -L -o ChemicalCompound.php https://huggingface.co/spaces/Ailixir-AI-Team/ailixir-api/resolve/ff99aeb50b353a35a7604091bfc7cfb19505bf44/app/Models/ChemicalCompound.php
535 Bytes
| namespace App\Models; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Database\Eloquent\Relations\BelongsTo; | |
| class ChemicalCompound extends Model | |
| { | |
| protected $fillable = [ | |
| 'job_id', | |
| 'rank', | |
| 'smiles', | |
| 'name', | |
| 'cid', | |
| 'similarity', | |
| 'explanation', | |
| 'image_url', | |
| ]; | |
| protected $casts = [ | |
| 'similarity' => 'float', | |
| ]; | |
| public function job(): BelongsTo | |
| { | |
| return $this->belongsTo(ChemicalSearchJob::class, 'job_id'); | |
| } | |
| } | |