AtroNvim - https://astronvim.com/
Install pyright
:LspInstall pyright
AtroNvim - https://astronvim.com/
Install pyright
:LspInstall pyright
I'm currently based in São Miguel do Oeste, my hometown, which is located in the south of Brazil. I have been working remotely since the pandemic.
Yes, I am currently employed at Softplan as a Senior Backend Engineer focusing on developing solutions using AI.
Surya is a Python-based document OCR toolkit designed for flexibility and ease of use in processing and extracting text from scanned documents. Developed as a lightweight and customizable solution, it allows developers to work with OCR tasks seamlessly, making it a great choice for building tailored document processing workflows. Surya supports multiple OCR engines and focuses on accessibility for diverse use cases. GitHub
from PIL import Image
from surya.ocr import run_ocr
from surya.model.detection.model import load_model as load_det_model, load_processor as load_det_processor
from surya.model.recognition.model import load_model as load_rec_model
from surya.model.recognition.processor import load_processor as load_rec_processor
This code demonstrates a structured approach to querying OpenAI models and handling the response, making it easier to integrate advanced use cases like math tutoring into applications.
Defining Data Models:
Step
: Represents an individual step in the solution process. Each step contains:
explanation
: A description of what is happening in this step.output
: The result or equation at this stage.MathResponse
: Represents the full structured response. It contains:
steps
: A list of Step objects, representing the solution's breakdown.final_answer
: The final solution to the problem.A variant of the ongoing conversation employs the while true
strategy, utilizing an infinite loop to sustain the dialogue.
def run_conversation(message: str, thread_id, assistant_id):
message = client.beta.threads.messages.create(
thread_id=thread_id,
role="user",
content=message,
)
Utilize this code to quickly estimate processing costs for your dataset with OpenAI.
dataset.csv
text
Music is a universal language that connects people across cultures.
Listening to music can improve your mood and reduce stress.
Classical music has a rich history and deeply influences modern genres.
Jazz is known for its improvisational style and complex harmonies.
Install dependencies - pip install fastapi 'uvicorn[standard]'
Run the example - uvicorn main:app --host 0.0.0.0 --port 8000
Access multiple pages from http://localhost:8000/ and send messages
main.py
from fastapi.security import APIKeyHeader
from fastapi import Security, HTTPException, status
from fastapi import APIRouter, FastAPI, Depends
import sqlite3
print(sqlite3.sqlite_version)