Spaces:
Runtime error
Runtime error
Commit
·
44806a2
1
Parent(s):
f98593f
branch
Browse files- app.py +0 -1
- requirements.txt +1 -1
app.py
CHANGED
@@ -24,7 +24,6 @@ p_2 = None
|
|
24 |
def get_plain_pipeline():
|
25 |
prompt_open_ai = PromptModel(model_name_or_path="text-davinci-003", api_key=api_key)
|
26 |
|
27 |
-
|
28 |
# Now let make one PromptNode use the default model and the other one the OpenAI model:
|
29 |
plain_llm_template = PromptTemplate(name="plain_llm", prompt_text="Answer the following question: $query")
|
30 |
node_openai = PromptNode(prompt_open_ai, default_prompt_template=plain_llm_template, max_length=300)
|
|
|
24 |
def get_plain_pipeline():
|
25 |
prompt_open_ai = PromptModel(model_name_or_path="text-davinci-003", api_key=api_key)
|
26 |
|
|
|
27 |
# Now let make one PromptNode use the default model and the other one the OpenAI model:
|
28 |
plain_llm_template = PromptTemplate(name="plain_llm", prompt_text="Answer the following question: $query")
|
29 |
node_openai = PromptNode(prompt_open_ai, default_prompt_template=plain_llm_template, max_length=300)
|
requirements.txt
CHANGED
@@ -1 +1 @@
|
|
1 |
-
farm-haystack
|
|
|
1 |
+
farm-haystack -e git+https://github.com/deepset-ai/haystack.git@ffd02c29f7cc83a119b6440bfbabaacdaaac3a19
|