Improved check trains package updates

This commit is contained in:
allegroai 2019-10-28 22:01:01 +02:00
parent bfa22ae82a
commit 3527f743a6
5 changed files with 14 additions and 14 deletions

View File

@ -17,8 +17,8 @@ We designed TRAINS specifically to require effortless integration so that teams
and practices. Use it on a daily basis to boost collaboration and visibility, or use it to automatically collect
your experimentation logs, outputs, and data to one centralized server.
(Experience TRAINS live at [https://demoapp.trainsai.io](https://demoapp.trainsai.io))
<a href="https://demoapp.trainsai.io"><img src="https://github.com/allegroai/trains/blob/master/docs/webapp_screenshots.gif?raw=true" width="100%"></a>
(Experience TRAINS live at [https://demoapp.trains.allegro.ai](https://demoapp.trains.allegro.ai))
<a href="https://demoapp.trains.allegro.ai"><img src="https://github.com/allegroai/trains/blob/master/docs/webapp_screenshots.gif?raw=true" width="100%"></a>
## TRAINS Automatically Logs Everything
**With only two lines of code, this is what you are getting:**
@ -67,7 +67,7 @@ TRAINS is a two part solution:
- Run your code. When TRAINS connects to the server, a link is printed. For example
TRAINS Results page:
https://demoapp.trainsai.io/projects/76e5e2d45e914f52880621fe64601e85/experiments/241f06ae0f5c4b27b8ce8b64890ce152/output/log
https://demoapp.trains.allegro.ai/projects/76e5e2d45e914f52880621fe64601e85/experiments/241f06ae0f5c4b27b8ce8b64890ce152/output/log
- Open the link and view your experiment parameters, model and tensorboard metrics
@ -75,7 +75,7 @@ TRAINS is a two part solution:
2. [TRAINS-server](https://github.com/allegroai/trains-server) for logging, querying, control and UI ([Web-App](https://github.com/allegroai/trains-web))
We have a demo server up and running at [https://demoapp.trainsai.io](https://demoapp.trainsai.io). You can try out TRAINS and test your code with it.
We have a demo server up and running at [https://demoapp.trains.allegro.ai](https://demoapp.trains.allegro.ai). You can try out TRAINS and test your code with it.
Note that it resets every 24 hours and all of the data is deleted.
When you are ready to use your own TRAINS server, go ahead and [install *TRAINS-server*](https://github.com/allegroai/trains-server).

View File

@ -9,7 +9,7 @@ api {
# file server on port 8081
files_server: "http://localhost:8081"
# Credentials are generated in the webapp, http://localhost:8080/admin
# Credentials are generated using the webapp, http://localhost:8080/profile
credentials {"access_key": "EGRTCO8JMSIGI6S39GTP43NFWXDQOW", "secret_key": "x!XTov_G-#vspE*Y(h$Anm&DIc5Ou-F)jsl$PdOyj5wG1&E!Z8"}
# verify host ssl certificate, set to False only if you have a very good reason

View File

@ -1,16 +1,16 @@
{
version: 1.5
# default api_server: https://demoapi.trainsai.io
# default api_server: https://demoapi.trains.allegro.ai
api_server: ""
# default web_server: https://demoapp.trainsai.io
# default web_server: https://demoapp.trains.allegro.ai
web_server: ""
# default files_server: https://demofiles.trainsai.io
# default files_server: https://demofiles.trains.allegro.ai
files_server: ""
# verify host ssl certificate, set to False only if you have a very good reason
verify_certificate: True
# default demoapi.trainsai.io credentials
# default demoapi.trains.allegro.ai credentials
credentials {
access_key: ""
secret_key: ""

View File

@ -43,9 +43,9 @@ class Session(TokenManager):
_write_session_timeout = (300.0, 300.)
api_version = '2.1'
default_host = "https://demoapi.trainsai.io"
default_web = "https://demoapp.trainsai.io"
default_files = "https://demofiles.trainsai.io"
default_host = "https://demoapi.trains.allegro.ai"
default_web = "https://demoapp.trains.allegro.ai"
default_files = "https://demofiles.trains.allegro.ai"
default_key = "EGRTCO8JMSIGI6S39GTP43NFWXDQOW"
default_secret = "x!XTov_G-#vspE*Y(h$Anm&DIc5Ou-F)jsl$PdOyj5wG1&E!Z8"

View File

@ -317,7 +317,7 @@ class CheckPackageUpdates(object):
from ..version import __version__
cls._package_version_checked = True
cur_version = Version(__version__)
update_server_releases = requests.get('https://updates.trainsai.io/updates',
update_server_releases = requests.get('https://updates.trains.allegro.ai/updates',
data=json.dumps({"versions": {"trains": str(cur_version)}}),
timeout=3.0)
if update_server_releases.ok:
@ -337,7 +337,7 @@ class CheckPackageUpdates(object):
@staticmethod
def get_version_from_updates_server(cur_version):
try:
_ = requests.get('https://updates.trainsai.io/updates',
_ = requests.get('https://updates.trains.allegro.ai/updates',
data=json.dumps({"versions": {"trains": str(cur_version)}}),
timeout=1.0)
return