Skip to content

mahmutcanborann/t5-model-react-fastapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

t5-model-react-fastapi

A Turkish question-answering application using a fine-tuned T5 model with a FastAPI backend and a React frontend.

⚠️ The model file (model.safetensors) is not included in the repo due to its large size (500+ MB). You must download it from the link below and manually place it in backend/model/model/:

📎 Download model from Google Drive: https://drive.google.com/file/d/19ScqfRWVmJ6nBxTBRalqMwiAOTWWNG30/view?usp=sharing

T5 Model - React & FastAPI Application This project is a Question-Answering Application powered by a fine-tuned T5 model trained on the Turkish language. The frontend is built with React.js, and the backend is developed using FastAPI.

🚀 Technologies Used 🔮 T5 (Text-To-Text Transfer Transformer) – Fine-tuned for the Turkish language

⚡ FastAPI – A modern, high-performance web framework for serving the model

⚛️ React.js – For collecting user questions and displaying answers

🧠 HuggingFace Transformers – For loading the model and generating responses

🔗 Google Drive – Used to store the large model file externally

✍️ How to Use Type a question into the input box on the page.

Click the "Submit" button.

Instantly view the response generated by the model.

🔀 Example Question Input: Product: Ravla Zeytinyağı Questions: Soğuk sıkım mı?

Model Response: Yes, this product is cold-pressed olive oil.

📌 Notes The model file is ignored via .gitignore because it exceeds 500 MB.

git-lfs could be used as an alternative, but Google Drive is preferred for simplicity.

🖥️ How to Run the Project

  1. Backend 📦 Install dependencies:

bash Kopyala Düzenle pip install fastapi uvicorn transformers torch sentencepiece safetensors ▶️ Start the backend:

bash Kopyala Düzenle cd backend uvicorn main:app --reload ⚠️ The model file (model.safetensors) is not included in the repo due to its large size (500+ MB). You must download it from the link below and manually place it in backend/model/model/:

📎 Download model from Google Drive: https://drive.google.com/file/d/19ScqfRWVmJ6nBxTBRalqMwiAOTWWNG30/view?usp=sharing

👨‍💻 Developer Mahmut Can Boran 🖥️| AI Engineer & NLP Enthusiast 📧 Email: mahmutcanboran@gmail.com 🔗 GitHub: @mahmutcanborann

About

A Turkish question-answering application using a fine-tuned T5 model with a FastAPI backend and a React frontend.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors