Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -162,7 +162,7 @@ class Chat:
|
|
162 |
|
163 |
def get_target(self, img_feats, tar_img_feats) :
|
164 |
score = (img_feats @ tar_img_feats.t()).squeeze(0).cpu().detach().numpy()
|
165 |
-
index = np.argsort(score)[::-1][0]
|
166 |
self.target_recipe = df.iloc[index]
|
167 |
|
168 |
def ask(self):
|
|
|
162 |
|
163 |
def get_target(self, img_feats, tar_img_feats) :
|
164 |
score = (img_feats @ tar_img_feats.t()).squeeze(0).cpu().detach().numpy()
|
165 |
+
index = np.argsort(score)[::-1][0]
|
166 |
self.target_recipe = df.iloc[index]
|
167 |
|
168 |
def ask(self):
|