Coder Social home page Coder Social logo

alexmotoc / projectaeora Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 4.0 3.83 MB

๐Ÿ† A virtual assistant to assist traders with financial queries.

License: MIT License

Python 61.26% HTML 15.18% CSS 2.61% JavaScript 20.95%
chatbot trading finance ftse100 django chat

projectaeora's Introduction

Aeora

The ChatBot for traders, providing answers to questions on the FTSE 100.
Built for quick and intellectual conversations.

Laptop view

Installation

Install all the dependencies using the command:

pip3 install -r requirements.txt

This is a Django project therefore the command you need to run it is:

python3 manage.py runserver

projectaeora's People

Contributors

alexmcfarlane97 avatar alexmotoc avatar matt-leitzell avatar stevenpewsey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

projectaeora's Issues

Create scrollable interactive bubbles

Each interactive bubble should be able to contain multiple elements (e.g. cards or suggestions). When the combined width of these elements exceeds the one of the browser window, the container should be scrollable on the x-axis (with hidden scrollbar obviously).

Asking 'Are pharmaceuticals rising or falling' throws errors and results in infinite spinner.

The error that appears in the console is:

Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/exception.py", line 35, in inner
response = get_response(request)
File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py", line 128, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py", line 126, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/media/mattleitzell/Windows/Users/Matt/Documents/CompSci/Term 2/CS261 - Software Engineering/Trader-ChatBot/webapp/bot/views.py", line 75, in chat
if response['type'] not in ('input.unknown', 'incomplete', 'simple.response'):
TypeError: string indices must be integers

Implement the My Interests page as a news feed

We could use some sort of frequency analysis to rank the entities based on their number of searches and then display some useful news or company/sector data in the My Interests page - similar to how a news feed would work. Could also include the entities from user preferences.

Would act like the left sidebar from the original mock-up but can contain more and better spread-out information.

Display message timestamps

Could have a centered divider with the date and also display the time under individual messages as a toggle feature while clicking on them.

Fix get_top5() method from scraper

The method should return a list of tuples ideally or a JSON (it would make it easier to work with instead of having a string with values separated by tabs/new lines).

Resize images related to news articles

While it is difficult to maintain the same size for news cards (due to different image sizes and summary lengths), they should be pretty similar and sometimes images can be too big which is why they need shrinking.

Key point: maintain aspect ration!

Implement different colour schemes

Could add another field to user preferences with 2-3 different colour schemes that would change the chat bubbles, suggestion chips and sidebar.

Fix bugs identified in scraper/test/test_scraper.py

Run the tests to understand the bugs, most are to do with not returning None when it should be returned, or failing to return when the input has been identified as None and instead trying to iterate over NoneTypes...

Ajaxify web app

Use Ajax when sending queries through POST requests and displaying their corresponding replies. Add Ajax to settings page to give feedback to user when changes have been saved as well as have autocomplete field for the companies and sectors that are being tracked.

Asking 'How is the mining sector performing?' yields infinite spinner and console errors.

Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/exception.py", line 35, in inner
response = get_response(request)
File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py", line 128, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py", line 126, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/media/mattleitzell/Windows/Users/Matt/Documents/CompSci/Term 2/CS261 - Software Engineering/Trader-ChatBot/webapp/bot/views.py", line 75, in chat
if response['type'] not in ('input.unknown', 'incomplete', 'simple.response'):
TypeError: string indices must be integers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.