Write a program in python to scan a pdf document or a jpg file
Write a program in python to scan a pdf document or a jpg file(ex;- birth certificate, death certificate, Resume, invoices, PO..etc) using google or OpenAI API’s and create a model to demonstrate the data extracted. Once you are successful in scanning one document you should do the same for bulk scanning of at least 100 documents and create a data model. Feel free to use all sources on Google, ChatGPT, Blackbox.ai and learn and write.
Check if a fine-tuned OpenAI model was successfully deleted?
I am doing some work with the OpenAI API with python. I’m working with fine-tuning and I am working on deleting an existing model and starting over again. I want to be able to check if the deletion actually succeeded or failed, but the OpenAI.models.delete()
function returns a ModelDeleted
object, which I don’t have any idea what to do with. There doesn’t seem to be any obvious documentation on OpenAI’s api page. Any ideas?
How to generate image from openAi using Python
Using python how can we generate and download an image using OpenAI api? Surprisingly, I’ve got the following code from chatgpt which should have provided me with the latest working version but it didn’t
Why am I getting a quota exceeded error when using the OpenAI API despite having no usage?
I’m trying to use the OpenAI API , but I’m encountering an error message that says
About running ChatGPT with Python
import speech_recognition as sr import time import os import openai import serial # Set up your OpenAI API key #openai.api_key = ‘sk-proj-9wGxyYGvulHuFnh50CPgT3BlbkFJYj6XPjbLKnZUrDsSEGzA’ #api_key = “sk-proj-9wGxyYGvulHuFnh50CPgT3BlbkFJYj6XPjbLKnZUrDsSEGzA” client = openai.OpenAI( # This is the default and can be omitted api_key=os.getenv(“sk-proj-9wGxyYGvulHuFnh50CPgT3BlbkFJYj6XPjbLKnZUrDsSEGzA”) ) # Serial port for communication with Arduino Nano SERIAL_PORT = ‘/dev/ttyUSB0’ # Adjust as needed SERIAL_BAUDRATE […]
How to stop generating response in openai library for python?
I am using Completions in openai library for python.
Approach to retrieving tables from PDF files
I am attempting to make a mostly python program for scanning through research papers and retrieving tables(Any tables for now, hopefully change it to specific tables later). However, I’m realizing PDF files are the worst thing ever made, and because of inconsistencies in research paper, no library I’ve tried like tabular, camelot, etc. has worked consistently.
Inspect openai raw network request and response
I’m using Python openai library to make some calls to chat.completions.create
and I want to inspect the raw requests and responses alongside with the JSON request body and responses from the model.
I attempted to set logging levels of openai and requests library to DEBUG but I only see request body and response headers without response body, also tried openai.log = "debug"
but same result. What options do I have?
OpenAI API issues
I’m trying to create a Chatbot with the OpenAI API, but I get the following error:
Error code: 429 – {‘error’: {‘message’: ‘You exceeded your current quota, please check your plan and billing details.
OpenAI Assistants api attachments not working
I am using the code below to build a simple Assistant that is capable of reading a pdf file attached as a part of a message thread. But this does not seem to work as even though the message_files object is being created it does not seem to get uploaded and I am unsure as for the cause of this since this is the code from the api documentation.