Spaces:
Runtime error
Runtime error
Fix typo
#5
by
omergulen
- opened
- utils/haystack.py +1 -1
utils/haystack.py
CHANGED
|
@@ -10,7 +10,7 @@ from haystack.nodes import PromptNode, PromptTemplate
|
|
| 10 |
)
|
| 11 |
def start_haystack():
|
| 12 |
#Use this function to contruct a pipeline
|
| 13 |
-
prompt_node = PromptNode(model_name_or_path="text-davinci-003", api_key=
|
| 14 |
|
| 15 |
twitter_template = PromptTemplate(name="twitter-voice", prompt_text="""You will be given a twitter stream belonging to a specific profile. Answer with a summary of what they've lately been tweeting about and in what languages.
|
| 16 |
You may go into some detail about what topics they tend to like tweeting about. Please also mention their overall tone, for example: positive,
|
|
|
|
| 10 |
)
|
| 11 |
def start_haystack():
|
| 12 |
#Use this function to contruct a pipeline
|
| 13 |
+
prompt_node = PromptNode(model_name_or_path="text-davinci-003", api_key=OPEN_AI_KEY)
|
| 14 |
|
| 15 |
twitter_template = PromptTemplate(name="twitter-voice", prompt_text="""You will be given a twitter stream belonging to a specific profile. Answer with a summary of what they've lately been tweeting about and in what languages.
|
| 16 |
You may go into some detail about what topics they tend to like tweeting about. Please also mention their overall tone, for example: positive,
|