Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Commit

Permalink
feat: no refresh when not editable
Browse files Browse the repository at this point in the history
  • Loading branch information
cabreraalex committed Apr 16, 2023
1 parent bcc4553 commit 296ad00
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zeno/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ def get_filtered_table(req: TableRequest):

@api_app.get("/refresh", tags=["zeno"])
def refresh_data():
if not zeno.editable:
return

if zeno.params.config_file:
zeno.params = read_config(zeno.params.config_file)
zeno.done_running_inference = False
Expand Down

0 comments on commit 296ad00

Please sign in to comment.