Add more diagrams for detailed explanation for every part

Reading File
Reading File
Running Command

cd /home/daytona/workspace && python -m markitdown "attachments/7837f239-5634-4c…

Running Command

cd /home/daytona/workspace && python /home/daytona/skills/pptx/scripts/office/un…

Running Command

mkdir -p /home/daytona/workspace/tongue_unpacked && unzip -o "/home/daytona/work…

Running Command

ls -la "/home/daytona/workspace/attachments/7837f239-5634-4c78-b8e6-613922add638…

Running Command

cp "/home/daytona/workspace/attachments/7837f239-5634-4c78-b8e6-613922add638/A &…

Running Command

ls /tmp/tongue_unzipped/ppt/slides/ | sort

Running Command

for i in $(seq 1 14); do echo "=== SLIDE $i ==="; python3 -c " import xml.etree.…

Generating Image

Detailed anatomical diagram of the human tongue showing labeled parts: Root, Tip, Body (oral part anterior 2/3 and pharyngeal part posterior 1/3), posterior most part, palatoglossal arch, sulcus terminalis, epiglottis, vallecula, median glossoepiglottic fold, lateral glossoepiglottic folds, frenulum linguae, plica fimbriata, foliate papillae on lateral margins. Medical textbook style, clean white background, clear labels with arrows.

Generating Image

Detailed labeled diagram of the four types of tongue papillae: Vallate (circumvallate) papillae arranged in V-shape at back, Fungiform papillae on tip and sides (mushroom shaped), Filiform (conical) papillae covering anterior surface, Foliate papillae on lateral borders. Medical textbook illustration style showing dorsal surface of tongue with each papilla type clearly labeled and cross-section insets showing taste buds within each type. White background.

Generating Image

Detailed anatomical diagram of tongue muscles showing both intrinsic and extrinsic muscles. Intrinsic muscles: Superior longitudinal, Inferior longitudinal, Transverse, Vertical muscles. Extrinsic muscles: Genioglossus, Hyoglossus, Styloglossus, Palatoglossus with their attachments to mandible, hyoid bone, styloid process, and palate. Cross-sectional and lateral views. Medical textbook style, labeled arrows, white background.

Generating Image

Detailed anatomical diagram of tongue neurovascular supply. Showing: Lingual artery (arterial supply), Deep lingual vein (venous drainage). Nerve supply chart: Hypoglossal nerve (motor to all muscles except palatoglossus), Lingual nerve (sensory anterior 2/3), Glossopharyngeal nerve (posterior 1/3 and vallate papillae), Vagus nerve (posterior most part). Pharyngeal plexus supply to palatoglossus. Color-coded diagram with clear labels, medical textbook style.

Generating Image

Diagram showing five physiological functions of the tongue: Gustation (taste buds and taste pathway to brain), Mastication (tongue mixing food forming bolus), Deglutition (swallowing phases showing tongue pushing bolus to pharynx), Oral cleansing (tongue removing food particles), Speech articulation (tongue positions for different sounds). Clean infographic style with icons and brief labels, medical education visual.

!

400, message: Got more than 4194304 bytes when reading: b'data: {"candidates": [{"content": {"role": "model","parts": [{"inlineData": {"mimeType": "image/png"...'.

We encountered an error while processing your request. Please try again or reach out to us for help.

Try again

Generating Image

Detailed anatomical diagram of the human tongue showing labeled parts: Root, Tip, Body with oral part (anterior 2/3) and pharyngeal part (posterior 1/3), palatoglossal arch, sulcus terminalis, epiglottis, vallecula, frenulum linguae, foliate papillae on lateral margins. Medical textbook style, clean white background, clear labels with arrows pointing to each structure.

Generating Image

Medical diagram of the four types of tongue papillae on dorsal surface of tongue. Shows Vallate (circumvallate) papillae in V-shape at posterior tongue, Fungiform papillae as mushroom-shaped red dots on tip and sides, Filiform papillae covering anterior surface, Foliate papillae on lateral borders. Each type clearly labeled with arrows. White background, textbook style illustration.

Generating Image

Anatomical diagram of tongue muscles. Left panel shows intrinsic muscles in cross-section: Superior longitudinal, Inferior longitudinal, Transverse, and Vertical muscle fibers labeled. Right panel shows lateral view of extrinsic muscles: Genioglossus (from mandible), Hyoglossus (from hyoid bone), Styloglossus (from styloid process), Palatoglossus (from soft palate). Each muscle labeled with colored arrows. Medical textbook illustration, white background.

Generating Image

Color-coded nerve and blood supply diagram of the tongue. Shows tongue divided into regions: Anterior 2/3 supplied by lingual nerve (sensory, in blue), Posterior 1/3 plus vallate papillae supplied by glossopharyngeal nerve (in green), Posterior-most part supplied by vagus nerve (in yellow). Hypoglossal nerve shown for motor supply (in red). Lingual artery shown entering at base. Labeled arrows pointing to each region. Clean medical diagram, white background.

Generating Image

Infographic showing the five physiological functions of the human tongue. Five labeled boxes with icons: 1) Gustation - taste buds detecting sweet/salty/sour/bitter/umami, 2) Mastication - tongue forming food into bolus, 3) Deglutition - tongue pushing bolus toward pharynx in swallowing, 4) Speech - tongue articulating consonants and vowels, 5) Oral Cleansing - tongue removing food debris. Clean educational infographic style, colored sections, white background.

Running Command

mkdir -p /home/daytona/workspace/tongue-pptx/diagrams && \ curl -s "https://cdn.…

Writing File

~/tongue-pptx/add_diagrams.py

from pptx import Presentation
from pptx.util import Inches, Pt, Emu
from pptx.dml.color import RGBColor
from pptx.enum.text import PP_ALIGN
import copy
import os

SRC = "/home/daytona/workspace/attachments/7837f239-5634-4c78-b8e6-613922add638/A & P of Tongue.pptx"
OUT = "/home/daytona/workspace/tongue-pptx/A_and_P_of_Tongue_with_diagrams.pptx"
DIAG = "/home/daytona/workspace/tongue-pptx/diagrams"

prs = Presentation(SRC)

# Slide dimensions
SW = prs.slide_width   # 9144000 EMU = 10 inches typically
SH = prs.slide_height  # 6858000 EMU = 7.5 inches typically

print(f"Slide width: {SW.inches:.2f}in  height: {SH.inches:.2f}in")
print(f"Total slides: {len(prs.slides)}")

def add_image_to_slide(slide, img_path, left, top, width, height):
    """Add image to slide at given position (all in Inches)."""
    slide.shapes.add_picture(img_path, Inches(left), Inches(top), Inches(width), Inches(height))

def add_label(slide, text, left, top, width, height, font_size=11, bold=False, color=(0,0,128)):
    txBox = slide.shapes.add_textbox(Inches(left), Inches(top), Inches(width), Inches(height))
    tf = txBox.text_frame
    tf.word_wrap = True
    p = tf.paragraphs[0]
    p.alignment = PP_ALIGN.CENTER
    run = p.add_run()
    run.text = text
    run.font.size = Pt(font_size)
    run.font.bold = bold
    run.font.color.rgb = RGBColor(*color)

# --- SLIDE 2: Parts of Tongue Overview --- add diagram below existing text
# Slide index 1 (0-based). Current content is text about parts.
# Add the parts_of_tongue diagram on the right half, shrink it so text stays left.
slide2 = prs.slides[1]
add_image_to_slide(slide2, f"{DIAG}/parts_of_tongue.png",
                   left=5.1, top=0.8, width=4.7, height=6.2)

# --- SLIDE 3: Oral Part --- add a supporting diagram at bottom right
slide3 = prs.slides[2]
add_image_to_slide(slide3, f"{DIAG}/parts_of_tongue.png",
                   left=5.5, top=1.5, width=4.2, height=5.5)

# --- SLIDE 5: Pharyngeal part --- add diagram on right side
slide5 = prs.slides[4]
add_image_to_slide(slide5, f"{DIAG}/parts_of_tongue.png",
                   left=5.5, top=1.2, width=4.2, height=5.8)

# --- SLIDE 6: Papillae --- add papillae diagram on right half
slide6 = prs.slides[5]
add_image_to_slide(slide6, f"{DIAG}/papillae.png",
                   left=5.0, top=0.8, width=4.8, height=6.2)

# --- SLIDE 7: (appears blank) --- insert papillae close-up diagram full slide as visual
slide7 = prs.slides[6]
add_image_to_slide(slide7, f"{DIAG}/papillae.png",
                   left=0.2, top=0.5, width=9.3, height=6.8)
add_label(slide7, "Types of Papillae - Detailed View", 0.2, 0.05, 9.3, 0.5,
          font_size=18, bold=True, color=(255,255,255))

# --- SLIDE 8: Muscles --- add muscles diagram on right side
slide8 = prs.slides[7]
add_image_to_slide(slide8, f"{DIAG}/muscles.png",
                   left=4.8, top=0.7, width=5.0, height=6.5)

# --- SLIDE 9: Nerve/Blood supply --- add nerve supply diagram on right
slide9 = prs.slides[8]
add_image_to_slide(slide9, f"{DIAG}/nerve_supply.png",
                   left=5.0, top=0.7, width=4.8, height=6.3)

# --- SLIDE 10: Physiology intro --- add physiology infographic
slide10 = prs.slides[9]
add_image_to_slide(slide10, f"{DIAG}/physiology.png",
                   left=4.8, top=0.7, width=5.0, height=6.3)

# --- SLIDE 11: Mastication & Deglutition --- add physiology diagram
slide11 = prs.slides[10]
add_image_to_slide(slide11, f"{DIAG}/physiology.png",
                   left=5.0, top=1.0, width=4.7, height=5.8)

# --- SLIDE 12: Oral Cleansing, Sensation, Salivation --- add physiology diagram
slide12 = prs.slides[11]
add_image_to_slide(slide12, f"{DIAG}/physiology.png",
                   left=5.0, top=1.0, width=4.7, height=5.8)

# --- SLIDE 13: Taste Receptors --- add papillae diagram for visual reference
slide13 = prs.slides[12]
add_image_to_slide(slide13, f"{DIAG}/papillae.png",
                   left=5.0, top=0.7, width=4.8, height=6.3)

prs.save(OUT)
print(f"Saved to: {OUT}")
Running Command

cd /home/daytona/workspace/tongue-pptx && python3 add_diagrams.py 2>&1

Running Command

pip install --user python-pptx -q && python3 /home/daytona/workspace/tongue-pptx…

Editing File

~/tongue-pptx/add_diagrams.py

Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/tongue-pptx/add_diagrams.py'
Running Command

python3 /home/daytona/workspace/tongue-pptx/add_diagrams.py 2>&1 && cp /tmp/A_an…

Your updated presentation is ready with 5 new anatomical diagrams added across all relevant slides:

A and P of Tongue with diagrams

Presentation · PPTX

Here's what was added to each section:
Slide(s)TopicDiagram Added
Slides 2, 3, 5Parts of Tongue (Root, Tip, Body, Oral/Pharyngeal parts)Labeled anatomy diagram showing all regions, sulcus terminalis, vallecula, frenulum linguae, palatoglossal arch
Slides 6 & 7Papillae of TongueDorsal tongue map showing all 4 types (Vallate, Fungiform, Filiform, Foliate) with positions and labels. Slide 7 (was blank) now shows a full-slide detailed papillae view
Slide 8Muscles of TongueSplit diagram - intrinsic muscles in cross-section + extrinsic muscles with bony attachments
Slide 9Nerve & Blood SupplyColor-coded regions - lingual nerve (ant 2/3), glossopharyngeal (post 1/3), vagus (posterior most), hypoglossal (motor)
Slides 10, 11, 12PhysiologyInfographic covering Gustation, Mastication, Deglutition, Speech, and Oral Cleansing
Slide 13Taste ReceptorsPapillae diagram for visual cross-reference
This is a shared conversation. Sign in to Orris to start your own chat.