" result += chunk.choices[0].delta.content or \"\"\n",
" yield result"
]
},
{
"cell_type": "code",
"execution_count": 209,
"id": "6b40a0a1-2c08-40ac-8442-9f7367e8a4dc",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"* Running on local URL: http://127.0.0.1:7876\n",
"* Running on public URL: https://efca7dbc932ecd5a15.gradio.live\n",
"\n",
"This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from the terminal in the working directory to deploy to Hugging Face Spaces (https://huggingface.co/spaces)\n"
"<generator object summary_and_translate_anatomy_online_resources_stream_gpt at 0x12f55e200>"
]
},
"execution_count": 206,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"summary_and_translate_anatomy_online_resources_stream_gpt(\"Learning Notebook: National Cancer Institute - Anatomy & Physiology\", \"https://training.seer.cancer.gov/anatomy/body/terminology.html\")"
"# Load environment variables in a file called .env\n",
"# Load environment variables in a file called .env\n",
"# Print the key prefixes to help with any debugging\n",
"# Print the key prefixes to help with any debugging\n",
@ -76,7 +86,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"execution_count": 4,
"id": "22586021-1795-4929-8079-63f5bb4edd4c",
"id": "22586021-1795-4929-8079-63f5bb4edd4c",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
@ -92,7 +102,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"id": "b16e6021-6dc4-4397-985a-6679d6c8ffd5",
"id": "b16e6021-6dc4-4397-985a-6679d6c8ffd5",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
@ -104,7 +114,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"execution_count": 6,
"id": "02ef9b69-ef31-427d-86d0-b8c799e1c1b1",
"id": "02ef9b69-ef31-427d-86d0-b8c799e1c1b1",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
@ -125,10 +135,21 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"execution_count": 7,
"id": "aef7d314-2b13-436b-b02d-8de3b72b193f",
"id": "aef7d314-2b13-436b-b02d-8de3b72b193f",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"\"Today's date is October 22, 2023.\""
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"source": [
"message_gpt(\"What is today's date?\")"
"message_gpt(\"What is today's date?\")"
]
]
@ -143,7 +164,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"execution_count": 9,
"id": "bc664b7a-c01d-4fea-a1de-ae22cdd5141a",
"id": "bc664b7a-c01d-4fea-a1de-ae22cdd5141a",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
@ -157,32 +178,128 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"execution_count": 10,
"id": "083ea451-d3a0-4d13-b599-93ed49b975e4",
"id": "083ea451-d3a0-4d13-b599-93ed49b975e4",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Shout has been called with input hello\n"
]
},
{
"data": {
"text/plain": [
"'HELLO'"
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"source": [
"shout(\"hello\")"
"shout(\"hello\")"
]
]
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"execution_count": 12,
"id": "08f1f15a-122e-4502-b112-6ee2817dda32",
"id": "08f1f15a-122e-4502-b112-6ee2817dda32",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"* Running on local URL: http://127.0.0.1:7861\n",
"* Running on public URL: https://ffdaeb77f01dfb1ef4.gradio.live\n",
"\n",
"This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from the terminal in the working directory to deploy to Hugging Face Spaces (https://huggingface.co/spaces)\n"
"* Running on local URL: http://127.0.0.1:7862\n",
"* Running on public URL: https://ffa17661a0b7475b95.gradio.live\n",
"\n",
"This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from the terminal in the working directory to deploy to Hugging Face Spaces (https://huggingface.co/spaces)\n"
"# And now - changing the function from \"shout\" to \"message_gpt\"\n",
"# And now - changing the function from \"shout\" to \"message_gpt\"\n",
"\n",
"\n",
@ -270,12 +515,77 @@
"view.launch()"
"view.launch()"
]
]
},
},
{
"cell_type": "markdown",
"id": "79943e09-9b02-4228-9884-7ad031138b6d",
"metadata": {},
"source": [
"Prompt: who is the most prestigious scientist in sport science at UT Austin?\n",
"Give me a list of professor names, their research interests and their current work.\n",
"\n",
"Response: As of my last update in October 2023, I don't have access to real-time databases or specific personnel lists at universities, including the University of Texas at Austin (UT Austin). However, I can provide an overview of prominent figures in the field of sport science at UT Austin based on known faculty and their general research interests. For the most updated information, I recommend checking the university's official website or the specific department's faculty page.\n",
"\n",
"Here are a few notable faculty members who have had significant contributions in sport science at UT Austin:\n",
"\n",
"1. **Dr. Darin A. C. J. R. H. McGowan**\n",
" - **Research Interests**: Exercise physiology, biomechanics, and the effects of exercise on mental health.\n",
" - **Current Work**: Investigating how different types of exercise impact cognitive functioning, especially in different populations.\n",
"\n",
"2. **Dr. Brian S. H. McAuley**\n",
" - **Research Interests**: Motor control and learning, postural stability, and athlete training.\n",
" - **Current Work**: Focusing on the mechanics of human movement and how training programs can be optimized for performance enhancement and injury prevention.\n",
" - **Current Work**: Studying the kinematics and kinetics of various sports movements and developing strategies to prevent athletic injuries.\n",
"\n",
"4. **Dr. David W. Stodden**\n",
" - **Research Interests**: Motor development, physical activity for children, and foundational motor skills.\n",
" - **Current Work**: Exploring how early physical education impacts lifelong sports participation and physical health in children.\n",
"\n",
"5. **Dr. Joseph L. Hornsby**\n",
" - **Research Interests**: Sport psychology, performance enhancement strategies, and motivation in sports.\n",
" - **Current Work**: Examining mental training techniques and their effectiveness in high-pressure sporting environments.\n",
"\n",
"For detailed and current information, including their specific areas of research and projects, visiting the UT Austin Department of Kinesiology and Health Education or the College of Education's website would be beneficial, as they typically provide profiles for their faculty members, including their latest research publications and ongoing work."
]
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"execution_count": 22,
"id": "af9a3262-e626-4e4b-80b0-aca152405e63",
"id": "af9a3262-e626-4e4b-80b0-aca152405e63",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"* Running on local URL: http://127.0.0.1:7869\n",
"\n",
"To create a public link, set `share=True` in `launch()`.\n"
"I'm unable to create or display illustrations directly. However, I can provide a detailed description of the Krebs cycle (also known as the citric acid cycle or TCA cycle) that you can use to find or create an illustration.\n",
"\n",
"### Illustration Description of the Krebs Cycle\n",
"\n",
"1. **Starting Compound**: \n",
" - **Acetyl-CoA** (2-carbon molecule) enters the cycle.\n",
"\n",
"2. **Citrate Formation**:\n",
" - Acetyl-CoA combines with **Oxaloacetate** (4-carbon molecule) to form **Citrate** (6-carbon molecule).\n",
" \n",
"3. **Citrate Isomerization**:\n",
" - Citrate is converted into **Isocitrate**.\n",
"\n",
"4. **First Decarboxylation**:\n",
" - Isocitrate is oxidized and decarboxylated to form **α-Ketoglutarate** (5-carbon molecule) and one molecule of **NADH** and **CO₂** is released.\n",
" \n",
"5. **Second Decarboxylation**:\n",
" - α-Ketoglutarate undergoes decarboxylation to form **Succinyl-CoA** (4-carbon molecule). This step produces another molecule of **NADH** and releases another CO₂.\n",
"\n",
"6. **Conversion to Succinate**:\n",
" - Succinyl-CoA is converted to **Succinate**, which generates **GTP (or ATP)** through substrate-level phosphorylation.\n",
"\n",
"7. **Succinate Conversion**:\n",
" - Succinate is oxidized to **Fumarate**, generating **FADH₂**.\n",
"\n",
"8. **Fumarate Hydration**:\n",
" - Fumarate is converted to **Malate** by the addition of water.\n",
"\n",
"9. **Final Oxidation**:\n",
" - Malate is oxidized back to **Oxaloacetate**, producing one more **NADH**.\n",
"\n",
"10. **Return to Starting Point**:\n",
" - Oxaloacetate is ready to combine with another Acetyl-CoA, completing the cycle.\n",
"\n",
"### Energy Molecules Produced\n",
"- **3 NADH**\n",
"- **1 FADH₂**\n",
"- **1 GTP (or ATP)**\n",
"\n",
"### Diagram Elements\n",
"- Arrows should indicate the flow from one compound to another.\n",
"- Circles or ovals to represent each molecule.\n",
"- Label each molecule clearly.\n",
"- Include the enzymes that catalyze each step, if needed.\n",
"\n",
"You can use this description to create your own diagram or search for images online using keywords like \"Krebs cycle\" or \"citric acid cycle diagram\". Websites like educational platforms, textbooks, or online biology resources will likely have detailed illustrations of the Krebs cycle."
]
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"execution_count": 25,
"id": "bbc8e930-ba2a-4194-8f7c-044659150626",
"id": "bbc8e930-ba2a-4194-8f7c-044659150626",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
@ -362,10 +755,40 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"execution_count": 26,
"id": "a0066ffd-196e-4eaf-ad1e-d492958b62af",
"id": "a0066ffd-196e-4eaf-ad1e-d492958b62af",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"* Running on local URL: http://127.0.0.1:7871\n",
"\n",
"To create a public link, set `share=True` in `launch()`.\n"