Spaces:
Runtime error
Runtime error
remove
Browse files
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 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
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:
|