From 7114335dd77d2382058ca0c62bd308fc5a242fe3 Mon Sep 17 00:00:00 2001 From: Mogbeyi Date: Tue, 28 Oct 2025 08:08:13 +0100 Subject: [PATCH] Add Emmy's week 3 solution --- .../emmy/emmy_exercise_week3.ipynb | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 week3/community-contributions/emmy/emmy_exercise_week3.ipynb diff --git a/week3/community-contributions/emmy/emmy_exercise_week3.ipynb b/week3/community-contributions/emmy/emmy_exercise_week3.ipynb new file mode 100644 index 0000000..77a1287 --- /dev/null +++ b/week3/community-contributions/emmy/emmy_exercise_week3.ipynb @@ -0,0 +1,50 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "af388e13", + "metadata": {}, + "source": [ + "# ๐ŸŒ€ VoiceShift Hybrid\n", + "\n", + "This Colab project builds a **hybrid text transformation pipeline** that combines **OpenAI GPT** and a **Hugging Face model** to summarize and restyle text.\n", + "\n", + "---\n", + "\n", + "## โš™๏ธ Pipeline\n", + "1. **Summarize** with GPT (`gpt-4o-mini`) โ€” concise and factual summary. \n", + "2. **Rewrite tone/style** with Hugging Face (`mistralai/Mistral-7B-Instruct-v0.1`). \n", + "3. **Streamed output** displayed live through Gradio UI.\n", + "\n", + "---\n", + "\n", + "## ๐Ÿง  Highlights\n", + "- Combines **frontier + open-source models** in one workflow. \n", + "- Supports **4-bit quantized loading** (fallback to fp16/fp32). \n", + "- Simple **Gradio interface** with real-time GPT streaming. \n", + "\n", + "---\n", + "\n", + "## ๐Ÿ“˜ Notebook\n", + "๐Ÿ‘‰ [Open in Google Colab](https://colab.research.google.com/drive/1ZRPHKe9jg6nf1t7zIe2jjpUULl38jPOJ?usp=sharing)\n", + "\n", + "---\n", + "\n", + "## ๐Ÿงฉ Tech Stack\n", + "`OpenAI API ยท Transformers ยท BitsAndBytes ยท Torch ยท Gradio`\n", + "\n", + "---\n", + "\n", + "## ๐Ÿ’ก Summary\n", + "**VoiceShift Hybrid** shows how a **frontier model ensures accuracy** while a **local model personalizes style**, achieving both **precision and creativity** in one simple, efficient pipeline.\n" + ] + } + ], + "metadata": { + "language_info": { + "name": "python" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +}