Skip to content

Commit ca5b747

Browse files
committed
fupdate README and fix session so that it won't fail on Heroku environment
1 parent df2226e commit ca5b747

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

README.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# "Detox" toxic chat classifier integrated with Twitch Chatbot
1+
# "Detox" toxic chat classifier
22

33
## Overview
44

@@ -13,10 +13,11 @@ This project is for my University of Illinois at Urbana-Champaign MCS-DS Fall 20
1313
* Reuse trained classifer engine and also fitted vectorizer so it runs faster after initial execution.
1414
* The engine supports Out-of-core model fitting, a.k.a incremental training/learning. Thank you for Naive Bayes!!!
1515
* Integerated Twitch Chatbot so Moira can be deployed to any TwitchTV channel and determine if chat is toxic.
16+
* Integrated simple web chat app and TwitchTV chatbot.
1617

1718
## Requirement
1819

19-
Python3 along with a few modules (csv, nltk, numpy, pandas, joblib, sklearn). It won't run with Python2, so make sure you have Python3 installed,
20+
Python3 along with a few modules (csv, nltk, numpy, pandas, joblib, sklearn).
2021

2122
```
2223
> python --version
@@ -41,9 +42,11 @@ and see what's the python version that your pip supports.
4142

4243
## How to Use
4344

44-
## deploy directly from Github to Heroku
45+
## Pre-deployed instance on Heroku
4546

46-
Click this [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) and that's all<br/>
47+
https://detox-uiuc-cs410.herokuapp.com/
48+
49+
## Runing with Docker
4750

4851
### in your local with given test dataset
4952
After Git clone the project in your local machine, simply type

templates/session.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<h3 style='color: #ccc;font-size: 30px;'>No message yet..</h3>
2727
<div class="message_holder"></div>
2828

29-
<form action="" method="POST">
29+
<form method="POST">
3030
<input type="text" class="username" placeholder="User Name" />
3131
<input type="text" class="message" placeholder="Messages" />
3232
<input type="submit" />
@@ -36,7 +36,7 @@ <h3 style='color: #ccc;font-size: 30px;'>No message yet..</h3>
3636
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
3737
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.7.3/socket.io.min.js"></script>
3838
<script type="text/javascript">
39-
var socket = io.connect('http://' + document.domain + ':' + location.port);
39+
var socket = io.connect(location.protocol + '//' + location.hostname + (location.port ? ':' + location.port: ''));
4040

4141
socket.on('connect', function () {
4242
socket.emit('my event', {

0 commit comments

Comments
 (0)