Spaces:
Sleeping
Sleeping
OmPrakashSingh1704
commited on
Commit
•
9cccb55
1
Parent(s):
56dfdea
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ with open('vectors.pkl', 'rb') as file:
|
|
20 |
with open('items_dict.pkl', 'rb') as file:
|
21 |
items_dict = pd.DataFrame.from_dict(pickle.load(file))
|
22 |
|
23 |
-
mode=st.toggle(label="
|
24 |
|
25 |
def get_recommendations(user_description, count_vectorizer, count_matrix):
|
26 |
user_description = preprocess_text(user_description)
|
@@ -48,7 +48,7 @@ def show_recipe(recipe):
|
|
48 |
cont.write(instructions)
|
49 |
|
50 |
# Initialize the inference client for the Mixtral model
|
51 |
-
if mode:
|
52 |
cook,saved=st.tabs(['COOK','SAVED'])
|
53 |
with cook:
|
54 |
client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
|
|
|
20 |
with open('items_dict.pkl', 'rb') as file:
|
21 |
items_dict = pd.DataFrame.from_dict(pickle.load(file))
|
22 |
|
23 |
+
mode=st.toggle(label="MART")
|
24 |
|
25 |
def get_recommendations(user_description, count_vectorizer, count_matrix):
|
26 |
user_description = preprocess_text(user_description)
|
|
|
48 |
cont.write(instructions)
|
49 |
|
50 |
# Initialize the inference client for the Mixtral model
|
51 |
+
if not mode:
|
52 |
cook,saved=st.tabs(['COOK','SAVED'])
|
53 |
with cook:
|
54 |
client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
|