Spaces:
Running
Running
Remove the list of icons names provided with the prompts
Browse files
app.py
CHANGED
|
@@ -66,17 +66,6 @@ def _get_llm():
|
|
| 66 |
return llm_helper.get_hf_endpoint()
|
| 67 |
|
| 68 |
|
| 69 |
-
@st.cache_data
|
| 70 |
-
def _get_icons_list() -> List[str]:
|
| 71 |
-
"""
|
| 72 |
-
Get a list of available icons names without the dir name and file extension.
|
| 73 |
-
|
| 74 |
-
:return: A llist of the icons.
|
| 75 |
-
"""
|
| 76 |
-
|
| 77 |
-
return ice.get_icons_list()
|
| 78 |
-
|
| 79 |
-
|
| 80 |
APP_TEXT = _load_strings()
|
| 81 |
|
| 82 |
# Session variables
|
|
@@ -185,14 +174,12 @@ def set_up_chat_ui():
|
|
| 185 |
**{
|
| 186 |
'instructions': list_of_msgs,
|
| 187 |
'previous_content': _get_last_response(),
|
| 188 |
-
'icons_list': '\n'.join(_get_icons_list())
|
| 189 |
}
|
| 190 |
)
|
| 191 |
else:
|
| 192 |
formatted_template = prompt_template.format(
|
| 193 |
**{
|
| 194 |
'question': prompt,
|
| 195 |
-
'icons_list': '\n'.join(_get_icons_list())
|
| 196 |
}
|
| 197 |
)
|
| 198 |
|
|
|
|
| 66 |
return llm_helper.get_hf_endpoint()
|
| 67 |
|
| 68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
APP_TEXT = _load_strings()
|
| 70 |
|
| 71 |
# Session variables
|
|
|
|
| 174 |
**{
|
| 175 |
'instructions': list_of_msgs,
|
| 176 |
'previous_content': _get_last_response(),
|
|
|
|
| 177 |
}
|
| 178 |
)
|
| 179 |
else:
|
| 180 |
formatted_template = prompt_template.format(
|
| 181 |
**{
|
| 182 |
'question': prompt,
|
|
|
|
| 183 |
}
|
| 184 |
)
|
| 185 |
|
langchain_templates/chat_prompts/initial_template_v4_two_cols_img.txt
CHANGED
|
@@ -14,11 +14,6 @@ These keywords will be later used to search for images from the Web relevant to
|
|
| 14 |
|
| 15 |
In addition, create one slide containing 4 TO 6 icons (pictograms) illustrating some key ideas/aspects/concepts relevant to the topic.
|
| 16 |
In this slide, each line of text will begin with the name of a relevant icon enclosed between [[ and ]].
|
| 17 |
-
Select appropriate and exact icon names from the <ICONS> section provided below.
|
| 18 |
-
|
| 19 |
-
<ICONS>
|
| 20 |
-
{icons_list}
|
| 21 |
-
</ICONS>
|
| 22 |
|
| 23 |
The content of each slide should be VERBOSE, DESCRIPTIVE, and very DETAILED. Each bullet point should be detailed and explanatory, not just short phrases.
|
| 24 |
|
|
|
|
| 14 |
|
| 15 |
In addition, create one slide containing 4 TO 6 icons (pictograms) illustrating some key ideas/aspects/concepts relevant to the topic.
|
| 16 |
In this slide, each line of text will begin with the name of a relevant icon enclosed between [[ and ]].
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
The content of each slide should be VERBOSE, DESCRIPTIVE, and very DETAILED. Each bullet point should be detailed and explanatory, not just short phrases.
|
| 19 |
|
langchain_templates/chat_prompts/refinement_template_v4_two_cols_img.txt
CHANGED
|
@@ -15,11 +15,6 @@ These keywords will be later used to search for images from the Web relevant to
|
|
| 15 |
|
| 16 |
In addition, create one slide containing 4 TO 6 icons (pictograms) illustrating some key ideas/aspects/concepts relevant to the topic.
|
| 17 |
In this slide, each line of text will begin with the name of a relevant icon enclosed between [[ and ]].
|
| 18 |
-
Select appropriate and exact icon names from the <ICONS> section provided below.
|
| 19 |
-
|
| 20 |
-
<ICONS>
|
| 21 |
-
{icons_list}
|
| 22 |
-
</ICONS>
|
| 23 |
|
| 24 |
The content of each slide should be VERBOSE, DESCRIPTIVE, and very DETAILED. Each bullet point should be detailed and explanatory, not just short phrases.
|
| 25 |
|
|
|
|
| 15 |
|
| 16 |
In addition, create one slide containing 4 TO 6 icons (pictograms) illustrating some key ideas/aspects/concepts relevant to the topic.
|
| 17 |
In this slide, each line of text will begin with the name of a relevant icon enclosed between [[ and ]].
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
The content of each slide should be VERBOSE, DESCRIPTIVE, and very DETAILED. Each bullet point should be detailed and explanatory, not just short phrases.
|
| 20 |
|