diff options
author | gebele <gebele@in-silico.ch> | 2019-08-02 07:50:28 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2019-08-02 07:50:28 +0000 |
commit | 62a7197574267404cc7034d78f552c4be0290a25 (patch) | |
tree | b73c895c21909b16283b6b19578f1bf92f3b775a /application.rb | |
parent | 1ffdd765fe4b4d9d80626070dea652fe467a2fa5 (diff) |
refresh batch dataset in task wait loop
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/application.rb b/application.rb index 8872e5f..1c738f1 100644 --- a/application.rb +++ b/application.rb @@ -204,6 +204,7 @@ post '/predict/?' do input = Dataset.find_by(:source => "tmp/"+@filename) until input sleep 1 + input = Dataset.find_by(:source => "tmp/"+@filename) end prediction_dataset = model.predict input t.update_percent(70) |