-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why do I need an openAIkey to run this? OPENAI_API_KEY=your_openai_api_key OPENAI_BASE_URL=your_base_url python app.py #10
Comments
Hi, the openai_api_key is used to enhance the prompt. Of course, you can use a local VLM to recaption. If you use that, you can just copy the prompt to the prompt area in gradio demo and comment out the OPENAI_API_KEY |
Hello @wenqsun could you show me which lines of code to replace which which please? I really am not sure how to do this. |
I will try again later (had trouble with space disk when installing). Hoped to get more details though, for example, what prompt shoudl I use (the one in the .py right? But i see you have several ones:
and
So I am not sure exaclty, the step by step workflow though? (Altho I did not install it yet to try like I explained, just wanted to be sure I succeed making work when I install it) |
I just read this (OPENAI_API_KEY=your_openai_api_key OPENAI_BASE_URL=your_base_url python app.py)
Why would I need an openAI key to run this?
Cant this work locally (or least only by connecting to hugging face, no more than that)?
I don't undersyand what is the role or openAI communication?
If I can not have to use openAI key , please tell me.
Edit:
I just checked the app.py file it seems to contain some system prompt, so thats the link? OK wait, cant you make a method so instead of using the EXPENSIVE API, I could go direclty to chatgpt and talk to it and tell it exaclty as the system prompt, the come copy paste the answer to the program, so I dont have to pay this way?
Thanks
The text was updated successfully, but these errors were encountered: