Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,7 +11,7 @@ short_description: 'AI tool: profile insights, summary, and conversation starter
|
|
| 11 |
|
| 12 |
# Social Profile Analyzer (Agentic AI Project)
|
| 13 |
|
| 14 |
-
This project is an intelligent **Agentic AI web application** built using LangChain and
|
| 15 |
|
| 16 |
### π Demo
|
| 17 |
Available on [Hugging Face Spaces](https://huggingface.co/spaces/mhamza-007/Social-Profile-Analyzer)
|
|
@@ -24,7 +24,7 @@ Available on [Hugging Face Spaces](https://huggingface.co/spaces/mhamza-007/Soci
|
|
| 24 |
- π **Summarized Bio & Facts**
|
| 25 |
- π¬ **Conversation Starters & Ice-breakers**
|
| 26 |
- π **Topics of Interest**
|
| 27 |
-
- π§ Powered by LangChain +
|
| 28 |
|
| 29 |
---
|
| 30 |
|
|
@@ -32,9 +32,9 @@ Available on [Hugging Face Spaces](https://huggingface.co/spaces/mhamza-007/Soci
|
|
| 32 |
|
| 33 |
- π¦ LangChain (Agents + Tools)
|
| 34 |
- π Flask (Frontend + Backend)
|
| 35 |
-
- π§
|
| 36 |
- πΈοΈ Tavily Search API
|
| 37 |
-
- π¦ Twitter API (via Tweepy
|
| 38 |
- π Proxycurl (LinkedIn scraping)
|
| 39 |
- π§ͺ LangSmith (Optional for tracing/debugging)
|
| 40 |
|
|
@@ -60,7 +60,25 @@ LANGSMITH_ENDPOINT # Required if tracing enabled
|
|
| 60 |
LANGCHAIN_API_KEY # Required if tracing enabled
|
| 61 |
LANGCHAIN_PROJECT # Required if tracing enabled
|
| 62 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
|
| 65 |
## π΅ Note on API Usage
|
| 66 |
|
|
@@ -98,4 +116,23 @@ tweets = scrape_user_tweets_mock()
|
|
| 98 |
# β
With this:
|
| 99 |
linkedin_data = scrape_linkedin_profile(linkedin_url)
|
| 100 |
tweets = scrape_user_tweets(twitter_url)
|
| 101 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
# Social Profile Analyzer (Agentic AI Project)
|
| 13 |
|
| 14 |
+
This project is an intelligent **Agentic AI web application** built using LangChain and OpenRouterβs DeepSeek model. It takes a person's name as input and returns a professional profile summary, interesting facts, potential ice-breakers, and topics of interest based on publicly available data from LinkedIn and Twitter.
|
| 15 |
|
| 16 |
### π Demo
|
| 17 |
Available on [Hugging Face Spaces](https://huggingface.co/spaces/mhamza-007/Social-Profile-Analyzer)
|
|
|
|
| 24 |
- π **Summarized Bio & Facts**
|
| 25 |
- π¬ **Conversation Starters & Ice-breakers**
|
| 26 |
- π **Topics of Interest**
|
| 27 |
+
- π§ Powered by LangChain + DeepSeek: R1 0528 (free)
|
| 28 |
|
| 29 |
---
|
| 30 |
|
|
|
|
| 32 |
|
| 33 |
- π¦ LangChain (Agents + Tools)
|
| 34 |
- π Flask (Frontend + Backend)
|
| 35 |
+
- π§ Deepseek R1 LLM
|
| 36 |
- πΈοΈ Tavily Search API
|
| 37 |
+
- π¦ Twitter API (via Tweepy)
|
| 38 |
- π Proxycurl (LinkedIn scraping)
|
| 39 |
- π§ͺ LangSmith (Optional for tracing/debugging)
|
| 40 |
|
|
|
|
| 60 |
LANGCHAIN_API_KEY # Required if tracing enabled
|
| 61 |
LANGCHAIN_PROJECT # Required if tracing enabled
|
| 62 |
```
|
| 63 |
+
---
|
| 64 |
+
|
| 65 |
+
## π€ LLM Configuration
|
| 66 |
+
|
| 67 |
+
This project uses the `deepseek/deepseek-r1-0528:free` model via [OpenRouter](https://openrouter.ai) for language generation.
|
| 68 |
|
| 69 |
+
If you want to use a different OpenRouter-compatible LLM, make sure to update the `model` parameter accordingly:
|
| 70 |
+
|
| 71 |
+
```python
|
| 72 |
+
from langchain_openai import ChatOpenAI
|
| 73 |
+
import os
|
| 74 |
+
|
| 75 |
+
llm = ChatOpenAI(
|
| 76 |
+
model="deepseek/deepseek-r1-0528:free",
|
| 77 |
+
base_url="https://openrouter.ai/api/v1",
|
| 78 |
+
api_key=os.getenv("OPENROUTER_API_KEY"),
|
| 79 |
+
temperature=0,
|
| 80 |
+
)
|
| 81 |
+
```
|
| 82 |
|
| 83 |
## π΅ Note on API Usage
|
| 84 |
|
|
|
|
| 116 |
# β
With this:
|
| 117 |
linkedin_data = scrape_linkedin_profile(linkedin_url)
|
| 118 |
tweets = scrape_user_tweets(twitter_url)
|
| 119 |
+
```
|
| 120 |
+
---
|
| 121 |
+
|
| 122 |
+
## π Contributing
|
| 123 |
+
|
| 124 |
+
Contributions are welcome! If you find a bug or have suggestions for improvements, feel free to open an issue or submit a pull request.
|
| 125 |
+
|
| 126 |
+
---
|
| 127 |
+
|
| 128 |
+
## π¬ Contact
|
| 129 |
+
|
| 130 |
+
For any questions or feedback, reach out to **me** via [LinkedIn](https://www.linkedin.com/in/muhammad-hamza-azhar-996289314/) or open an issue on this repository.
|
| 131 |
+
|
| 132 |
+
---
|
| 133 |
+
|
| 134 |
+
## βοΈ Show Your Support
|
| 135 |
+
|
| 136 |
+
If you like this project, please give it a βοΈ on [GitHub](https://github.com/muhammadhamzaazhar/Social-Profile-Analyzer)!
|
| 137 |
+
|
| 138 |
+
---
|