{"id":25451651,"url":"https://github.com/aya-jafar/ai-services-api","last_synced_at":"2026-04-26T22:31:18.314Z","repository":{"id":234579334,"uuid":"786263976","full_name":"Aya-Jafar/AI-services-API","owner":"Aya-Jafar","description":"Django API for multiple AI medical services","archived":false,"fork":false,"pushed_at":"2025-04-19T15:34:41.000Z","size":6871,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-16T11:08:09.584Z","etag":null,"topics":["django","django-api","huggingface","llms","transformers"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aya-Jafar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-04-13T23:12:41.000Z","updated_at":"2025-04-19T15:34:44.000Z","dependencies_parsed_at":"2025-02-17T22:54:19.073Z","dependency_job_id":"b083be34-a603-40c8-a071-47210b8daf7a","html_url":"https://github.com/Aya-Jafar/AI-services-API","commit_stats":null,"previous_names":["aya-jafar/ai-services-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Aya-Jafar/AI-services-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aya-Jafar%2FAI-services-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aya-Jafar%2FAI-services-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aya-Jafar%2FAI-services-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aya-Jafar%2FAI-services-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aya-Jafar","download_url":"https://codeload.github.com/Aya-Jafar/AI-services-API/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aya-Jafar%2FAI-services-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32315711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T21:09:39.134Z","status":"ssl_error","status_checked_at":"2026-04-26T21:09:21.240Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","django-api","huggingface","llms","transformers"],"created_at":"2025-02-17T22:54:12.942Z","updated_at":"2026-04-26T22:31:18.296Z","avatar_url":"https://github.com/Aya-Jafar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Heal Tech.AI Django API\r\n\r\n[![Version](https://img.shields.io/badge/version-0.1.0-blue.svg?cacheSeconds=2592000)](https://github.com/yourusername/yourprojectname)\r\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\r\n\r\n## Introduction\r\n\r\nWelcome to the Heal Tech.AI Django API repository! This API serves as the backend for the Heal Tech.AI web application, providing various AI-powered medical services. It includes endpoints for next word prediction, summarization, and question answering using pretrained language models.\r\n\r\n## Installation\r\n\r\n1. Clone this repository:\r\n\r\n   ```sh\r\n   git clone https://github.com/Aya-Jafar/AI-services-API.git\r\n\r\n2. Navigate to the project directory:\r\n   ```sh\r\n   cd collegeDjango\r\n\r\n3. ```sh\r\n   python -m venv venv\r\n5. Activate python environment\r\n   \r\n  Windows:\r\n  ```sh\r\n    source venv/Scripts/activate\r\n  ```\r\n  MacOs:\r\n  ```\r\n  source venv/bin/activate\r\n  ```\r\n5. Install dependencies\r\n   ```sh\r\n   pip install -r requirements.txt\r\n   \r\n6. Run Server\r\n   ```sh\r\n   python manage.py runserver\r\n\r\n\r\n## Endpoints\r\n\r\n### Next Word Prediction\r\n\r\nThis endpoint takes a prompt as input and generates the next word prediction based on the provided prompt using a pretrained language model.\r\n\r\n- **Endpoint:** `/generate/next-word/`\r\n- **HTTP Method:** POST\r\n- **Example Usage:**\r\n  ```json\r\n  {\r\n      \"prompt\": \"Once upon a time\"\r\n  }\r\n\r\n- **Response**\r\n  ```json\r\n  {\r\n      \"generated_text\": \"there\"\r\n  }\r\n\r\n\r\n### Summarization \r\n\r\nTakes a long text to summarize\r\n\r\n- **Endpoint:** `/generate/summarize/`\r\n- **HTTP Method:** POST\r\n- **Example Usage:**\r\n  ```json\r\n  {\r\n      \"long_text\": \"Doctor: Good morning! How can I help you today?\\nPatient: Hi, doctor. I've been experiencing some chest pain and shortness of breath lately.\\nDoctor: I see. When did these symptoms start?\\nPatient: It's been about a week now. The chest pain comes and goes, and I feel like I can't take a deep breath sometimes.\\nDoctor: Have you noticed any other symptoms, such as coughing or fever?\\nPatient: No coughing, but I've been feeling a bit tired and lightheaded.\\nDoctor: Alright. Let's do a quick examination. I'll listen to your heart and lungs and take your blood pressure.\\nPatient: Sure, doctor.\\n[Doctor performs examination]\\nDoctor: Your blood pressure is slightly elevated, and I hear some wheezing in your lungs. I'd like to run some tests to rule out any serious conditions. We'll start with an ECG and a chest X-ray.\\nPatient: Okay, doctor. Should I be worried?\\nDoctor: It's important to investigate further to determine the cause of your symptoms. Let's take one step at a time. I'll also prescribe you some medication to help with the chest pain and shortness of breath in the meantime.\\nPatient: Thank you, doctor. I appreciate your help.\\nDoctor: You're welcome. Let's get those tests done, and we'll go from there. I'll see you again soon for a follow-up.\\n\"\r\n  }\r\n\r\n- **Response**\r\n  ```json\r\n  {\r\n       \"summarized_text\": \"Doctor: Good morning! How can I help you today? Patient: Hi, doctor. I've been experiencing some chest pain and shortness of breath lately. Doctor: I see. When did these symptoms start? Patient: It's been about a week now. The chest pain comes and goes, and I feel like I can't take a deep breath sometimes. Doctor: Have you noticed any other symptoms, such as coughing or fever? Patient: No coughing, but I've been feeling a bit tired and lightheaded. Doctor: Alright. Let's do a quick examination. I'll listen to your heart and lungs and take your blood pressure. Patient: Sure, doctor. [Doctor performs examination] Doctor: Your blood\"\r\n  }\r\n\r\n\r\n\r\n### QA model  \r\n\r\nTakes a medical question and returns an answer\r\n\r\n- **Endpoint:** `/generate/QA/`\r\n- **HTTP Method:** POST\r\n- **Example Usage:**\r\n  ```json\r\n  {\r\n      \"prompt\": \"What are the symptoms of appendicitis?\"\r\n  }\r\n\r\n- **Response**\r\n  ```json\r\n  {\r\n       \"generated_text\": \"the symptoms of appendicitis can vary depending on the location of the infection, but common symptoms include abdominal pain, nausea, vomiting, and fever.\"\r\n  }\r\n\r\n## Contributors \r\n### API development:\r\n- Aya Jafar\r\n\r\n### AI Services development:\r\n- Mohammed Riad\r\n- Mostafa Mohammed\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faya-jafar%2Fai-services-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faya-jafar%2Fai-services-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faya-jafar%2Fai-services-api/lists"}