Spaces:
Runtime error
Runtime error
seperate func
Browse files- gpt_based_function.py +1 -1
gpt_based_function.py
CHANGED
@@ -7,7 +7,7 @@ def gpt_keyw_extractor(user_text):
|
|
7 |
:param user_text: str
|
8 |
:return: list of keywords
|
9 |
'''
|
10 |
-
task_description = "You are a Python function that extract 5 keywords from {input_text}. The output should be formatted as [keyword1, keyword2, ...]. Return only the function's output, with no additional explanations."
|
11 |
|
12 |
user_prompt = r"{input_text}=" + f"{user_text}"
|
13 |
|
|
|
7 |
:param user_text: str
|
8 |
:return: list of keywords
|
9 |
'''
|
10 |
+
task_description = "You are a Python function that extract 5 keywords from {input_text}. The output should be formatted as ['keyword1', 'keyword2', ...]. Return only the function's output, with no additional explanations."
|
11 |
|
12 |
user_prompt = r"{input_text}=" + f"{user_text}"
|
13 |
|