Spaces:
Running
Running
File size: 2,756 Bytes
a756402 f3845b0 a756402 a5df0e4 |
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: SenseMakingTool
emoji: 📊
colorFrom: pink
colorTo: gray
sdk: gradio
sdk_version: 5.4.0
app_file: app.py
pinned: false
short_description: Enter a user story to extract the unarticulated needs
author: victor daniel
---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
# Unarticulated Needs & Wants Extractor
This project is a Q&A chatbot built using Google Gemini API and Gradio, hosted on Hugging Face Spaces. It extracts **unarticulated needs and wants** from a user-provided story, based on natural language understanding.
## How It Works
The application leverages **Google Gemini API** to process the user story and identify the unspoken needs or desires (needs) and wishes (wants) that are not explicitly mentioned by the user.
- **Input**: A user story describing a person's situation, actions, or decisions.
- **Output**: Extracted **unarticulated needs and wants** based on the story.
## Features
- **Easy-to-use interface**: Enter a user story in plain text, and the model will automatically extract and display the hidden needs and wants.
- **Example usage**: Examples are provided to guide the user in submitting relevant stories.
- **Powered by Google Gemini**: The application uses Google's powerful language model to generate insightful results.
## Usage
1. Enter a user story in the input text box.
2. Click on the **Submit** button.
3. The app will process the input and return a list of unarticulated needs and wants.
### Example Input:
The user often speaks about wanting to improve their health but is hesitant to join a gym.
### Example Output:
Needs: The user needs encouragement and a plan to overcome their fear of commitment. Wants: The user wants to get healthier without feeling pressure to join a gym.
## How to Access
You can try out the live demo of this application by visiting the following link:
[Live Demo on Hugging Face Spaces](https://huggingface.co/spaces/YOUR-USERNAME/YOUR-SPACE-NAME)
## Requirements
To replicate this project, you will need the following:
- **Gradio**: For building the interactive web interface.
- **Google Gemini API**: For generating responses.
- **Python-dotenv**: For handling environment variables.
Install the dependencies using the following command:
```bash
pip install -r requirements.txt
Running Locally
To run the app locally, follow these steps:
1. Clone this repository.
2. Set up your environment variables with the Google Gemini API key (GOOGLE_API_KEY).
3. Install the required dependencies:
pip install -r requirements.txt
4. Run the app:
python app.py
5. The app will be available at http://127.0.0.1:7860/ in your browser.
License
This project is licensed under the MIT License.
|