Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
nsthorat committed Feb 13, 2024
1 parent ebf0981 commit dd4a7ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 362 deletions.
4 changes: 1 addition & 3 deletions lilac/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,17 +165,15 @@ class ServerStatus(BaseModel):
version: str
google_analytics_enabled: bool
disable_error_notifications: bool
root_path: Optional[str]


@app.get('/status')
def status(request: Request) -> ServerStatus:
def status() -> ServerStatus:
"""Returns server status information."""
return ServerStatus(
version=metadata.version('lilac'),
google_analytics_enabled=env('GOOGLE_ANALYTICS_ENABLED', False),
disable_error_notifications=env('LILAC_DISABLE_ERROR_NOTIFICATIONS', False),
root_path=request.scope.get('root_path'),
)


Expand Down
11 changes: 3 additions & 8 deletions notebooks/ClusterSampling.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,9 @@
"metadata": {},
"outputs": [],
"source": [
"# Download the lilac-processed'OpenHermes-2.5 dataset.\n",
"if not ll.has_dataset('local', 'OpenHermes-2.5'):\n",
" ll.download(\n",
" 'lilacai/lilac-OpenHermes-2.5', dataset_namespace='local', dataset_name='OpenHermes-2.5'\n",
" )\n",
"\n",
"ds = ll.get_dataset('local', 'OpenHermes-2.5')\n",
"ds.to_huggingface()"
"# Download the lilac-processed OpenOrca dataset.\n",
"if not ll.has_dataset('lilac', 'SlimOrca'):\n",
" ll.download('lilacai/lilac-SlimOrca', dataset_namespace='lilac', dataset_name='SlimOrca')"
]
},
{
Expand Down
Loading

0 comments on commit dd4a7ea

Please sign in to comment.