Compare commits

...

6 Commits

Author SHA1 Message Date
Sunanda Somwase
a54d57bb02
Merge 68a30475d3 into f0ea440d41 2024-11-21 16:28:22 +01:00
Ayush Bhardwaj
f0ea440d41
Merge pull request #379 from SoumyaOk4-4/patch-2
fix: Replace broken PyPI logo link and add social media logos
2024-06-21 16:51:34 +02:00
Ayush Bhardwaj
8c995f4e00
Merge pull request #380 from hastagAB/dependabot/pip/yts_torrents/urllib3-1.26.19
Bump urllib3 from 1.26.18 to 1.26.19 in /yts_torrents
2024-06-21 16:50:50 +02:00
dependabot[bot]
d8880df87b
Bump urllib3 from 1.26.18 to 1.26.19 in /yts_torrents
Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.26.18 to 1.26.19.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/1.26.19/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/1.26.18...1.26.19)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-18 01:29:01 +00:00
Soumya Chakraborty
e261ff5240
fix: Replace broken PyPI logo link and add social media logos
Replaced the broken PyPI logo link in the README.md file with a working one. Additionally, added social media logos instead of text links at the bottom of the README for a better visual representation.
2024-05-28 20:07:41 +05:30
Sunanda
68a30475d3 Added a ChatBot using ChatterBot' 2020-10-03 19:46:22 +05:30
7 changed files with 229 additions and 9 deletions

View File

@ -0,0 +1,11 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
[requires]
python_version = "3.7"

View File

@ -0,0 +1,4 @@
flask
ChatterBot
Spacy
Numpy

View File

@ -0,0 +1,33 @@
"Hello",
"Hi there!",
"Hi",
"Hi!",
"How are you doing?",
"I'm doing great.",
"That is good to hear",
"Thank you.",
"You're welcome.",
'What is your name?', 'My name is Resume ChatBot',
'Who created you?', 'Sunanda'
"Tell me about yourself",
"My name is Sunanda Somwase. I am a third year computer engineering student at PVGCOET",
"Contact",
"Email : sunandasomwase@gmail.com, Mobile number : +91 9021393816 Location : Pune, Maharashtra",
"Education",
"Bachelor of Engineering (B.E), '\n'
Computer Science & Engineering\n
Pune Vidyarthi Grihas College Of Engineering And Technology Pune '\n'
2018 - 2022 '\n'
CGPA: 8.84/10 '\n'
Senior Secondary (XII), Science
Sir Parashurambhau College Pune Maharashtra
(MAHARASHTRA STATE BOARD board)
Year of completion: 2018
Percentage: 88.40%
Secondary (X)
Sant Meera School Aurangabad
(MAHARASHTRA STATE BOARF board)
Year of completion: 2016
Percentage: 96.20%",
"Projects",
""

View File

@ -0,0 +1,25 @@
from flask import Flask, render_template, request
from chatterbot import ChatBot
from chatterbot.trainers import ChatterBotCorpusTrainer
from chatterbot.trainers import ListTrainer
app = Flask(__name__)
with open('file.txt','r') as file:
conversation = file.read()
bot = ChatBot("Sunanda's Resume ChatBot")
trainer = ListTrainer(bot)
trainer.train(conversation)
@app.route("/")
def home():
return render_template("home.html")
@app.route("/get")
def get_bot_response():
userText = request.args.get('msg')
return str(bot.get_response(userText))
if __name__ == "__main__":
app.run()

View File

@ -0,0 +1,145 @@
<!DOCTYPE html>
<html>
<title>Candice</title>
<head>
<link
rel="shortcut icon"
type="image/x-icon"
href="https://user-images.githubusercontent.com/20112458/49326597-773b7280-f57a-11e8-853d-20ed61d18b0d.png"
/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<style>
body {
font-family: monospace;
}
h1 {
background-color: #FFC9BE;
display: inline-block;
font-size: 3em;
margin: 0;
padding: 14px;
}
h3 {
color: black;
font-size: 20px;
margin-top: 3px;
text-align: center;
}
#chatbox {
margin-left: auto;
margin-right: auto;
width: 40%;
margin-top: 60px;
}
#userInput {
margin-left: auto;
margin-right: auto;
width: 40%;
margin-top: 60px;
}
#textInput {
width: 90%;
border: none;
border-bottom: 3px solid black;
font-family: monospace;
font-size: 17px;
}
.userText {
color: black;
font-family: monospace;
font-size: 17px;
text-align: right;
line-height: 30px;
}
.userText span {
background-color: #FDFF60;
padding: 10px;
border-radius: 2px;
}
.botText {
color: black;
font-family: monospace;
font-size: 17px;
text-align: left;
line-height: 30px;
}
.botText span {
background-color: #BEE3FF;
padding: 10px;
border-radius: 2px;
}
#tidbit {
position: absolute;
bottom: 0;
right: 0;
width: 300px;
}
.boxed {
margin-left: auto;
margin-right: auto;
width: 78%;
margin-top: 60px;
border: 1px solid green;
}
.box {
border: 2px solid black;
}
</style>
</head>
<body>
<img />
<center>
<h1>
<img
src="https://www.logolynx.com/images/logolynx/s_b9/b9075efd5754f8eb0b28894bbff5f1f0.jpeg"
alt="CANDICE"
style="width:50px;height:50px;"
/>Sunanda's Resume ChatBot
</h1>
</center>
<div class="box"></div>
<div class="boxed">
<div>
<div id="chatbox">
<img
src="https://www.logolynx.com/images/logolynx/s_b9/b9075efd5754f8eb0b28894bbff5f1f0.jpeg"
alt="CANDICE"
style="width:50px;height:50px;"
/>
<p class="botText">
<span>Hello there! I am Sunanda's Resume ChatBot</span>
</p>
</div>
<div id="userInput">
<input id="textInput" type="text" name="msg" placeholder="Message" />
</div>
</div>
<script>
function getBotResponse() {
var rawText = $("#textInput").val();
var userHtml = '<p class="userText"><span>' + rawText + "</span></p>";
$("#textInput").val("");
$("#chatbox").append(userHtml);
document
.getElementById("userInput")
.scrollIntoView({ block: "start", behavior: "smooth" });
$.get("/get", { msg: rawText }).done(function(data) {
var botHtml = '<p class="botText"><span>' + data + "</span></p>";
$("#chatbox").append(botHtml);
document
.getElementById("userInput")
.scrollIntoView({ block: "start", behavior: "smooth" });
});
}
$("#textInput").keypress(function(e) {
if (e.which == 13) {
getBotResponse();
}
});
</script>
</div>
</body>
</html>

View File

@ -1,4 +1,6 @@
# Awesome Python Scripts :sunglasses: <img alt="PyPI" src="https://warehouse-camo.cmh1.psfhosted.org/18509a25dde64f893bd96f21682bd6211c3d4e80/68747470733a2f2f696d672e736869656c64732e696f2f707970692f707976657273696f6e732f64796e61636f6e662e737667"> [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/hastagAB/Awesome-Python-Scripts) ![GitHub stars](https://img.shields.io/github/stars/hastagAB/Awesome-Python-Scripts?style=social) # Awesome Python Scripts :snake:
<img alt="PyPI" src="https://pypi.org/static/images/logo-small.8998e9d1.svg" height="30px" width="auto"> [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/hastagAB/Awesome-Python-Scripts) ![GitHub stars](https://img.shields.io/github/stars/hastagAB/Awesome-Python-Scripts?style=social)
## Contents: ## Contents:
@ -197,15 +199,15 @@ Remember to star the repo if you love the scripts~ :wink:
- Only One Commit per PR is Adviced. - Only One Commit per PR is Adviced.
# If you like the project: # If you like the project:
- Star this Repo - [Awesome Python Scripts](https://github.com/hastagAB/Awesome-Python-Scripts) - **Star this Repo - [Awesome Python Scripts](https://github.com/hastagAB/Awesome-Python-Scripts)**
- Follow me on GitHub - [Ayush Bhardwaj](https://github.com/hastagAB) - **Follow me on GitHub - [Ayush Bhardwaj](https://github.com/hastagAB)**
# Want to connect with me? ## Want to Connect with Me?
- [LinkedIn](https://www.linkedin.com/in/hastagab/) [<img src="https://content.linkedin.com/content/dam/me/business/en-us/amp/brand-site/v2/bg/LI-Bug.svg.original.svg" height="30px" alt="Linkedin">](https://www.linkedin.com/in/hastagab/)
- [Twitter](https://twitter.com/HastagAB) [<img src="https://static.dezeen.com/uploads/2023/07/x-logo-twitter-elon-musk_dezeen_2364_col_0.jpg" height="30px" alt="X/Twitter">](https://twitter.com/HastagAB)
- [Facebook](https://www.facebook.com/SirHastagAB) [<img src="https://w7.pngwing.com/pngs/561/460/png-transparent-fb-facebook-facebook-logo-social-media-icon-thumbnail.png" height="30px" alt="Facebook">](https://www.facebook.com/SirHastagAB)
- [Instagram](https://www.instagram.com/sirhastagab/) [<img src="https://static.cdninstagram.com/rsrc.php/v3/yI/r/VsNE-OHk_8a.png" height="31px" alt="Instagram">](https://www.instagram.com/sirhastagab/)
[![](https://img.shields.io/badge/Made%20With%20❤%20By-HastagAB-red)](https://github.com/hastagAB) [![](https://img.shields.io/badge/Made%20With%20❤%20By-HastagAB-red)](https://github.com/hastagAB)

View File

@ -2,4 +2,4 @@ certifi==2023.7.22
chardet==3.0.4 chardet==3.0.4
idna==2.8 idna==2.8
requests==2.31.0 requests==2.31.0
urllib3==1.26.18 urllib3==1.26.19