momegas commited on
Commit
70d9611
1 Parent(s): 90793b1
Files changed (1) hide show
  1. app.py +21 -21
app.py CHANGED
@@ -46,27 +46,27 @@ docsearch = Chroma.from_documents(texts, embeddings).as_retriever()
46
  chat = ChatOpenAI(temperature=0.9)
47
 
48
 
49
- potential_questions = [
50
- "ποια ειναι η εταιρεια;",
51
- "ποια ειναι τα βηματα για ενα δανειο;",
52
- "πως μπορω να κλεισω ραντεβου;",
53
- "γιατι να ερθώ σε εσας;",
54
- ]
55
-
56
- for question in potential_questions:
57
- result_docs = docsearch.get_relevant_documents(question)
58
-
59
- print("Question: ", question)
60
- print("-" * 20)
61
-
62
- messages = [SystemMessage(content=system_message)]
63
- human_message = HumanMessage(
64
- content=PROMPT.format(context=result_docs[:3], question=question)
65
- )
66
- messages.append(human_message)
67
- result = chat(messages)
68
-
69
- print("Response: ", result, "\n")
70
 
71
 
72
  with gr.Blocks() as demo:
 
46
  chat = ChatOpenAI(temperature=0.9)
47
 
48
 
49
+ # potential_questions = [
50
+ # "ποια ειναι η εταιρεια;",
51
+ # "ποια ειναι τα βηματα για ενα δανειο;",
52
+ # "πως μπορω να κλεισω ραντεβου;",
53
+ # "γιατι να ερθώ σε εσας;",
54
+ # ]
55
+
56
+ # for question in potential_questions:
57
+ # result_docs = docsearch.get_relevant_documents(question)
58
+
59
+ # print("Question: ", question)
60
+ # print("-" * 20)
61
+
62
+ # messages = [SystemMessage(content=system_message)]
63
+ # human_message = HumanMessage(
64
+ # content=PROMPT.format(context=result_docs[:3], question=question)
65
+ # )
66
+ # messages.append(human_message)
67
+ # result = chat(messages)
68
+
69
+ # print("Response: ", result, "\n")
70
 
71
 
72
  with gr.Blocks() as demo: