MMProjFileName returns the filename of the MMProj file If the MMProj is a URL, it will return the MD5 of the URL which is the filename
()
| 1158 | // MMProjFileName returns the filename of the MMProj file |
| 1159 | // If the MMProj is a URL, it will return the MD5 of the URL which is the filename |
| 1160 | func (c *ModelConfig) MMProjFileName() string { |
| 1161 | uri := downloader.URI(c.MMProj) |
| 1162 | if uri.LooksLikeURL() { |
| 1163 | f, _ := uri.FilenameFromUrl() |
| 1164 | return f |
| 1165 | } |
| 1166 | |
| 1167 | return c.MMProj |
| 1168 | } |
| 1169 | |
| 1170 | func (c *ModelConfig) IsMMProjURL() bool { |
| 1171 | uri := downloader.URI(c.MMProj) |
no test coverage detected