Nixic commited on
Commit
5c28eea
·
1 Parent(s): 73bf215

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -115,7 +115,7 @@ if __name__ == '__main__':
115
  continue
116
  title = info['title']
117
  author = info.get("author", None)
118
- cover = f"weights/{name}/{info['cover']}"
119
  index = f"weights/{name}/{info['feature_retrieval_library']}"
120
  npy = f"weights/{name}/{info['feature_file']}"
121
  cpt = torch.load(f"weights/{name}/{name}.pth", map_location="cpu")
@@ -153,7 +153,7 @@ if __name__ == '__main__':
153
  '<div align="center">'
154
  f'<div>{title}</div>\n'+
155
  (f'<div>Model author: {author}</div>' if author else "")+
156
- (f'<img style="width:auto;height:300px;" src="file/{cover}">' if cover else "")+
157
  '</div>'
158
  )
159
  with gr.Row():
 
115
  continue
116
  title = info['title']
117
  author = info.get("author", None)
118
+ #cover = f"weights/{name}/{info['cover']}"
119
  index = f"weights/{name}/{info['feature_retrieval_library']}"
120
  npy = f"weights/{name}/{info['feature_file']}"
121
  cpt = torch.load(f"weights/{name}/{name}.pth", map_location="cpu")
 
153
  '<div align="center">'
154
  f'<div>{title}</div>\n'+
155
  (f'<div>Model author: {author}</div>' if author else "")+
156
+ #(f'<img style="width:auto;height:300px;" src="file/{cover}">' if cover else "")+
157
  '</div>'
158
  )
159
  with gr.Row():