She accepted the punishment with a faint smile.

Literal

She [topic-は] smile [object-を] floating [then-て] that punishment [object-を] accepted.

微笑みを浮かべて ('wearing a smile,' literally 'floating a smile') is a literary descriptive expression. 処罰 ('punishment') is a formal Sino-Japanese compound.