- optimize keyword search
- improve model card rendering
- login/signup function connected to TiDB database
- user customized favorite model list (favorite model collections)
- revise and optimize model abstracts using Neural Network
Model Master is a comprehensive collection website of AI models, catering specifically to AI engineers seeking models based on their requirements in various fields. We scrape data from Hugging Face and store the information using TiDB. The project employs Flask to construct a REST API, processing HTTP requests and interacting with the TiDB C2Q endpoint. The scraped data includes model name, size, popularity, link, task, languages, etc. The front end uses the Webflow content management system and hand-written JavaScript to display the information on a webpage.
This project is utilizing Flask framework, Hugging Face, TiDB, and Webflow.
Project description at devpost: https://devpost.com/software/project_name-wf9l8d
IMPORTANT: WEBSITE ONLY SUPPORTS RESOLUTION OF 1440PX OR MORE
See FAQ#1 below if needed.
- BeautifulSoup
- Certifi
- Requests
- Flask (Waitress)
- MySQLDB
- TiDB
- Webflow CMS
Check ./coding/back_end/requirements.txt for more information.
Clone the repository using git:
git clone https://github.com/AlezHibali/Model_Master_TiDB_Hackathon_2023.gitNavigate to the project directory:
cd Model_Master_TiDB_Hackathon_2023
cd coding
cd back_endInstall required packages in Python:
pip install -r requirements.txtIf it doesn't work, try pip install every line in ./coding/back_end/requirements.txt
Or check our FAQ#3.
IMPORTANT: RUN THIS CODE BEFORE HEADING TO THE WEBSITE
make sure you are in ./coding/back_end/
Run:
python RESTapi.pyThis code opens and listens at localhost:8080, and makes corresponding API processing.
After opening the REST API, go to website https://model-master.webflow.io/
IMPORTANT: USE AUTHORIZED ACCOUNT FOR FAVORITE MODEL FUNCTION
To use Favorite Model function, please login with our authorized account:
email: ali.daixin.tian@gmail.com
password: 12345678If you want to use the Scraper:
make sure you are in ./coding/back_end/data_collection/
Run:
python soup.pyThis script uses BeautifulSoup and requests to scrape data from Hugging Face and stores it in the TiDB.
If you want to test the website on local machine, contact us by email for more information.
Model Master is MIT Licensed.
For any questions or issues, please reach out to us on GitHub or email us at ali.daixin.tian@gmail.com.
We would like to thank Hugging Face, TiDB, and Webflow for their amazing functionalities that are used in this project.
If you have resolution of 1440px or more but cannot correctly display the website, a possible solution might be: Scale might make your resolution less than 1440px, try to lower the scale
Make sure you have ca certificate in your device. Run below in Python to check that:
import certifi
path_to_ca_cert = certifi.where()
If you face ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory, you might be facing problems of file path being too long.
Do the following:
win+R -> regedit -> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem -> set LongPathsEnabled value to 1
If after clicking Prompt Search it does not jumpt to result page within 15 seconds, it might because of NETWORK FLUCTUATION! Try more times, try another prompt, or wait for few minutes would help!
