from fastapi import FastAPI
from pydantic import BaseModel
app = FastAPI()
class Introduction(BaseModel):
name: str = 'Shymaa Medhat'
job_title: str = 'AI Engineer'
knowledge: list = ['Python','Django','FastAPI','Pytorch', 'TensorFlow', 'Transformers','Speech Processing', 'PostgreSQL', 'MongoDB']
@app.post("/introduce_yourself")
async def introduce_yourself(request: Introduction):
name = request.name
job_title = request.job_title
knowledge = ', '.join(request.knowledge)
introduction = f"Hello, my name is {name}. I am a {job_title} and I have Knowledge in {knowledge}."
return {'introduction': introduction}
-
💻 Python (Django,FastAPI,Pytorch,Tensorflow,transformers,Speech Processing,NLP)
-
🗄️ Relational and NoSQL Databases (PostgreSQL, MongoDB)
-
🚀 RESTful API Development and Graphql
-
🌐 Server Deployment and Management (Docker,pythonanywhere)
-
⚡ fact: ...
-
Programming is the art of turning imagination into reality