Adam Abbas, Terry Guan, Irene Lam, Shannon Lau
Welcome to Clever Gif! In this site, we've fused the Cleverbot and Giphy APIs. Visitors will be able to talk to a Cleverbot (via API calls), while gifs will pop up based on the context of the conversation. The user can save his/her favorite gif, which can be updated throughout the conversation. Once the user quits the conversation, the conversation history will also be saved alongside the favorite gif. All conversation histories can be accessed at any time, but the user will not be able to respond to the conversation.
- Python 2.7
- Flask
- Requests
- HTML/CSS
Flask needs to be installed in order to run this program. It is ideally stored in a virtual environment (venv).
To install a venv (with the name ), run these commands in your terminal:
$ pip install virtualenv
$ virtualenv <name>
On Mac/Linux, start up your venv with:
$ . <name>/bin/activate
On Windows:
$ . <name>/Script/activate
In your activated venv, run the following:
$ pip install -r requirements.txt
If that method does not work try installing the packages separately
$ pip install flask
$ pip install requests
Procure your Cleverbot API key:
- Add API 5K Free Trial to your cart.
- Fill out billing details, including name, email address, phone, address, and user password.
- Your key will appear after placing the order.
For your Giphy:
- Click Create an App.
- Enter account credentials.
- Enter app name and description (CLEVERGIF, an application that generates GIFs wwhile chatting with Cleverbot)
- Your key will appear on your dashboard.
- Clone the repo by running:
$ git clone git@github.com:slau8/PancakeSafari.git
- With your virtual environment activated, run these commands:
$ cd PancakeSafari
$ python app.py
- Add your API keys in their corresponding location in
keys.txt
. For example:
Cleverbot: abc123
Giphy: def456
- You can then view the webpage by opening the URL
localhost:5000
in a web browser.