Skip to content

Commit b7f0630

Browse files
style: pre-commit fixes
1 parent 5f5c6ac commit b7f0630

6 files changed

Lines changed: 14 additions & 29 deletions

File tree

AI_Postdoc_Workshop/module1/4-algorithms-prompting-with-olmo.ipynb

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,10 @@
175175
"source": [
176176
"# Test the prompt you want to send to OLMo.\n",
177177
"question = \"What is the best method for multiplying large numbers?\"\n",
178-
"input_content = textwrap.dedent(\n",
179-
" f\"\"\"\\\n",
178+
"input_content = textwrap.dedent(f\"\"\"\\\n",
180179
" You are an algorithms expert. Please answer the following question on algorithms.\n",
181180
" Question: {question}\n",
182-
"\"\"\"\n",
183-
")\n",
181+
"\"\"\")\n",
184182
"input_messages = [\n",
185183
" {\n",
186184
" \"role\": \"user\",\n",
@@ -271,13 +269,11 @@
271269
"metadata": {},
272270
"outputs": [],
273271
"source": [
274-
"input_prompt_template = textwrap.dedent(\n",
275-
" \"\"\"\\\n",
272+
"input_prompt_template = textwrap.dedent(\"\"\"\\\n",
276273
"{instruction}\n",
277274
"\n",
278275
"Question: {question}\n",
279-
"\"\"\"\n",
280-
")"
276+
"\"\"\")"
281277
]
282278
},
283279
{

AI_Postdoc_Workshop/module2/2-olmo-chat-rag.ipynb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,15 +342,13 @@
342342
"metadata": {},
343343
"outputs": [],
344344
"source": [
345-
"input_prompt_template = textwrap.dedent(\n",
346-
" \"\"\"\\\n",
345+
"input_prompt_template = textwrap.dedent(\"\"\"\\\n",
347346
"You are an algorithms expert. Please answer the question on algorithms based on the following context:\n",
348347
"\n",
349348
"{context}\n",
350349
"\n",
351350
"Question: {question}\n",
352-
"\"\"\"\n",
353-
")"
351+
"\"\"\")"
354352
]
355353
},
356354
{

Archive/SciPy2024/module2/2-astrophysics-prompting-with-olmo.ipynb

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,10 @@
204204
"source": [
205205
"# Test the prompt you want to send to OLMo.\n",
206206
"question = \"What is dark matter?\"\n",
207-
"input_content = textwrap.dedent(\n",
208-
" f\"\"\"\\\n",
207+
"input_content = textwrap.dedent(f\"\"\"\\\n",
209208
" You are an astrophysics expert. Please answer the following question on astrophysics.\n",
210209
" Question: {question}\n",
211-
"\"\"\"\n",
212-
")\n",
210+
"\"\"\")\n",
213211
"input_messages = [\n",
214212
" {\n",
215213
" \"role\": \"user\",\n",
@@ -330,13 +328,11 @@
330328
"metadata": {},
331329
"outputs": [],
332330
"source": [
333-
"input_prompt_template = textwrap.dedent(\n",
334-
" \"\"\"\\\n",
331+
"input_prompt_template = textwrap.dedent(\"\"\"\\\n",
335332
"{instruction}\n",
336333
"\n",
337334
"Question: {question}\n",
338-
"\"\"\"\n",
339-
")"
335+
"\"\"\")"
340336
]
341337
},
342338
{

Archive/SciPy2024/module3/1-olmo-chat-rag.ipynb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,15 +364,13 @@
364364
"metadata": {},
365365
"outputs": [],
366366
"source": [
367-
"input_prompt_template = textwrap.dedent(\n",
368-
" \"\"\"\\\n",
367+
"input_prompt_template = textwrap.dedent(\"\"\"\\\n",
369368
"You are an astrophysics expert. Please answer the question on astrophysics based on the following context:\n",
370369
"\n",
371370
"{context}\n",
372371
"\n",
373372
"Question: {question}\n",
374-
"\"\"\"\n",
375-
")"
373+
"\"\"\")"
376374
]
377375
},
378376
{

demos/olmo-rag/index.ipynb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -806,15 +806,13 @@
806806
"metadata": {},
807807
"outputs": [],
808808
"source": [
809-
"input_prompt_template = textwrap.dedent(\n",
810-
" \"\"\"\\\n",
809+
"input_prompt_template = textwrap.dedent(\"\"\"\\\n",
811810
"You are an astrophysics expert. Please answer the question on astrophysics based on the following context:\n",
812811
"\n",
813812
"{context}\n",
814813
"\n",
815814
"Question: {question}\n",
816-
"\"\"\"\n",
817-
")"
815+
"\"\"\")"
818816
]
819817
},
820818
{

resources/download_data.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import ssec_tutorials
22

3-
43
if __name__ == "__main__":
54
ssec_tutorials.download_all_tutorial_data()

0 commit comments

Comments
 (0)