Spaces:
Sleeping
Sleeping
File size: 1,839 Bytes
60d3e76 da6af7b 60d3e76 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
---
title: iBoothMe Case Study Generator
emoji: π
colorFrom: indigo
colorTo: pink
sdk: gradio
sdk_version: 5.27.0
app_file: app.py
pinned: false
license: mit
---
# π iBoothMe Case Study Generator
This is a Gradio-based AI tool that generates energetic, structured marketing case studies from informal brand activation event descriptions. It supports both **text input** and **audio input**. The audio is transcribed using **OpenAI Whisper**, and the case study is generated using **GPT-4o**.
---
## π Features
- π Paste or write an informal event description
- ποΈ Upload or record audio to transcribe via OpenAI Whisper
- π Generates structured case studies in the format: **Challenge**, **Solution**, and optional **Results**
- β¨ Uses a pre-defined prompt system to match real-world case study tone and format
- ποΈ Clean, tabbed Gradio UI with audio and text support
---
## π§± Tech Stack
- Python π
- Gradio ποΈ
- OpenAI GPT-4o & Whisper π§
- dotenv for API key management π
---
## π§© File Structure
```
CaseStudy_Generator/
βββ main.py
βββ prompts.py
βββ .env
βββ requirements.txt
βββ README.md
```
---
## π₯ Installation & Setup
### 1. Clone the Repository
```bash
git clone https://github.com/SummeyaTahir/Clean_CaseStudy_Generator.git
cd Clean_CaseStudy_Generator
```
### 2. (Optional) Create a Virtual Environment
```bash
python -m venv venv
venv\Scripts\activate # On Windows
# source venv/bin/activate # On Mac/Linux
```
### 3. Install the Requirements
```bash
pip install -r requirements.txt
```
### 3. Create .env File
Create a .env file in the root directory and paste this into it:
```bash
OPENAI_API_KEY=your-openai-api-key-here
```
### 4. βΆοΈ Run the App
```bash
python main.py
```
|