Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hey, I Want To Upload Text Files In The Allegro, And Store Them As An Artifact. How Can We Do That?

Hey,
I want to upload text files in the allegro, and store them as an artifact. How can we do that?

  
  
Posted 4 years ago
Votes Newest

Answers 4


Hi MotionlessSeagull22 ,

You can upload files as artifacts with
task.upload_artifact('text file', artifact_object=<path to your file>)You can find more artifacts examples in https://github.com/allegroai/trains/blob/master/examples/reporting/artifacts.py

  
  
Posted 4 years ago

TimelyPenguin76 I got the following error

  
  
Posted 4 years ago

2020-08-25 14:44:45,945 - trains.metrics - WARNING - Failed uploading to http://sgsccccdl0101:8081 (Failed uploading object sgsccccdl0101:8081/OMS-MAX/R12.0.1_RSE_scratch.ff035f5cb55648e19bb162b0cb6a99f6/artifacts/DAILIB_GIT_DIFF.TXT/DAILib_git_diff.txt (405): <html>

<head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <title>Error 405 HTTP method POST is not supported by this URL</title> </head> <body><h2>HTTP ERROR 405</h2> <p>Problem accessing /. Reason: <pre> HTTP method POST is not supported by this URL</pre></p><hr><a href=" http://eclipse.org/jetty ">Powered by Jetty:// 9.3.z-SNAPSHOT</a><hr/>

</body> </html> )

  
  
Posted 4 years ago

MotionlessSeagull22 it seems the request does not reach the Trains File Server (which should be on port 8081 on the same machine running Trains Server) but so a Jetty HTTP server (which is not related to Trains)... Perhaps you have some kind of redirection or the 8081 port is already taken by Jetty?

  
  
Posted 4 years ago
1K Views
4 Answers
4 years ago
one year ago
Tags