Spaces:
Sleeping
Sleeping
Commit
·
4ddc624
1
Parent(s):
307cd56
Update README.md
Browse files
README.md
CHANGED
|
@@ -8,6 +8,31 @@ sdk_version: 1.25.0
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: other
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: other
|
| 11 |
+
|
| 12 |
+
|
| 13 |
---
|
| 14 |
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
# Product Description Generator
|
| 18 |
+
Generate SEO-compliant product descriptions using product titles and meta-keywords provided by the user.
|
| 19 |
+
Implemented custom LLMChain function from the Langchain and few-shot prompting technique to generate multi-paragraph rich text product description for each product name and its corresponding keywords. Built a gradio app as a frontend demo to showcase the process.
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
## Steps:-
|
| 23 |
+
- Provide the product name and keywords separated by commas
|
| 24 |
+
- Using the custom prompt template and ChatOpenAI model, call the custom LLM chain to generate a product description
|
| 25 |
+
|
| 26 |
+
## How to run it locally:-
|
| 27 |
+
To run this app locally, first clone this repo using `git clone`.<br><br>
|
| 28 |
+
Now, install all libraries by running the following command in the terminal:<br>
|
| 29 |
+
```python
|
| 30 |
+
pip install -r requirements.txt
|
| 31 |
+
```
|
| 32 |
+
<br><br>
|
| 33 |
+
Now, run the app from the terminal:<br>
|
| 34 |
+
```python
|
| 35 |
+
gradio app.py
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|