Spaces:
Running
Running
Commit
·
4cdc9ad
1
Parent(s):
cf5a60f
go through answers, try 70b model
Browse files- Data/answers.json +10 -0
- app.py +4 -2
Data/answers.json
CHANGED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"answers": [
|
3 |
+
"Ankerkraut ist eine Marke für Gewürze und Gewürzmischungen, die für das Kochen und Grillen verwendet werden. Es ist bekannt für seine einzigartigen und geschmackvollen Gewürzmischungen, die von deutschen Metzger inspiriert sind, und wird von vielen begeisterten Köchen und Grillern verwendet.",
|
4 |
+
"Wir haben eine große Auswahl an Gewürzen, darunter BBQ Butter, Zimt und Apfelkuchen Gewürz.",
|
5 |
+
"Der Preis für BBQ-Rub variiert je nach Sorte und beträgt zwischen 8,99€ und 46,95€.",
|
6 |
+
"Ja, wir haben verschiedene Arten von Currypulver wie Englisches Curry, Indisches Curry und Orientalisches Curry.",
|
7 |
+
"Die Zutaten für das Magic Dust sind Cayennpfeffer, Cumin, Jalapeno, Knoblauch, Paprika, Pfeffer.",
|
8 |
+
"Welches Salz meinst du genau? Dann kann ich dir sagen ob es vegan ist."
|
9 |
+
]
|
10 |
+
}
|
app.py
CHANGED
@@ -37,7 +37,7 @@ client.add(collection_name="products",
|
|
37 |
documents=product_strings)
|
38 |
client.add(collection_name="recipes",
|
39 |
documents=recipe_strings)
|
40 |
-
model_name = "LeoLM/leo-hessianai-
|
41 |
|
42 |
last_messages = []
|
43 |
@spaces.GPU
|
@@ -199,7 +199,9 @@ def get_answers():
|
|
199 |
last_messages = []
|
200 |
with open("./Data/questions.json", "r", encoding="utf-8")as f:
|
201 |
json_data = json.load(f)["questions"]
|
202 |
-
for question in json_data:
|
|
|
|
|
203 |
answer = interactive_chat(question)
|
204 |
answers.append(answer)
|
205 |
with open("./Data/answers.json", "w", encoding="utf-8") as file:
|
|
|
37 |
documents=product_strings)
|
38 |
client.add(collection_name="recipes",
|
39 |
documents=recipe_strings)
|
40 |
+
model_name = "LeoLM/leo-hessianai-70b-chat"
|
41 |
|
42 |
last_messages = []
|
43 |
@spaces.GPU
|
|
|
199 |
last_messages = []
|
200 |
with open("./Data/questions.json", "r", encoding="utf-8")as f:
|
201 |
json_data = json.load(f)["questions"]
|
202 |
+
for (index, question) in enumerate(json_data):
|
203 |
+
if index <= 5:
|
204 |
+
continue
|
205 |
answer = interactive_chat(question)
|
206 |
answers.append(answer)
|
207 |
with open("./Data/answers.json", "w", encoding="utf-8") as file:
|