#๐ only 4 hours left...need a pro helper
205 messages ยท Page 1 of 1 (latest)
@autumn cliff
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
nooooooo
people definitely do
Eh
if u didnt change expire date its gonna expire in 30 days from psate website
fyi
doesnt seem like u did
anyways
Check if your key is valid.
Did you try the playground or the curl command?
do u really use /access_token= to give it api key to authorize ?
I am trying to subscribe to pending transactions on the Ethereum blockchain using this tutorial from Infura: https://docs.infura.io/tutorials/ethereum/subscribe-to-pending-transactions
When I try to
Recheck it.
DEEPGRAM_URL = f"wss://api.deepgram.com/v1/listen?access_token={DEEPGRAM_API_KEY}" if api key is correct then link must not be right ? 
no..it is said that use on emethod
ohh
Just to verify that your API key is working, I mean
ok wait
If it doesn't work with curl, it won't work with the code
Not sure if this is helpful, but in the tutorials it uses
'https://api.deepgram.com/v1/listen'
https, not wss.
do i have to paste it in terminal or python shell
this looks like a web link
the other one looks like a server link tbh
need to add api key in it?
I don't know, just reading through the tutorials myself.
Can you paste your code but just delete the actual API key from it (like add a placeholder text or something)?
Click here to see this code in our pastebin.
is this AI gen
might be ?
They said it was, yea
its op's original post but i replaced api key with empty string
i still got original pastebin link lol
i can delete the api fyi
i couldnt care less about an ai api key
but ye getting a new one is smart
And keep that private.
env var
env var, json or txt (i use txt cuz it's literally just one token)

is anyone helping to solve my query?
.
We're trying. We can't run your code, so can't solve it for you.
โ Error: https://api.deepgram.com/v1/listen isn't a valid URI: scheme isn't ws or wss
It's a header not a query string parameter
According to this: https://websockets.readthedocs.io/en/stable/reference/asyncio/client.html#websockets.asyncio.client.connect, you can add the authorization header with the additional_headers parameter to the connect call
So it should be like:
headers = {
"Authorization": f"token {DEEPGRAM_API_KEY}"
}
websockets.connect(uri, additional_headers=headers)
``` or something
@autumn cliff if you want my help you need to explain what you are trying to do
I think he was trying to use deepgram to transcribe live audio for an assignment.
yes eivl
and deepgram is an api you need to call?
live stream voice? or send pre recorded file?
generally live stream voice
is the assignment to do this with a live stream?
no not with live stream but works like gemini voice or something but with writing only
i am stuck there for 4 hours
it is a huge difference from pre recorded audio to live stream
I think for simplicity maybe do pre-recorded audio?
dependds on what the assignment is
Yeah.
tell me about the problem you are trying to solve
i have send the assigment in the dm eivl
there are no way for you to complete this in two hours
but you should focus on what you can do
What's his assignment tasks?
many many things that each take mulltiple hours
All scored the same?
what can i do..in two and half hours?
Send me the assignment in dm. I'll see if I can help in any of the parts. No promises.
so you should not do voice as input, you should use text, since that is one of the options
And next time, don't put an assignment that you don't know exactly how to do for the last minute.
Accepts voice or text input
use text input
have you setup your automation tech stack?
i was using chatgpt tbh
i thought i could do it with chatgpt
so i took this assignemnt
but stuck now
did you learn something from trying to get an LLM to do your work?
where are you on this?
you sent me this as part of your assignment
pip installed all required libraries
only python
not youtube api and llm
no, your assignment said n8n as your tech stack
make.com im not sure what is though
it will probably take a few hours just to setup n8n if your not familiar with it
they said i could do it with python too
i see.. have you already written the python code for the automation part?
it is still unclear what you need help with
did AI write this code for you?
yes
then you should just delete everything and start over not using AI
so what should i do
use the docs
but
what you need is already in the documentation
how am i gonna do it in rest hours
you are not, this is not something you can complete in a few hours
An introduction to getting transcription data from live streaming audio in real time.
here is the docs for deepgram about working with streaming audio
but as i said earlier, dont use streaming audio
use text
what is LLM
Large Language Model.
Aka what you call AI.
i.e., chatGPT, or more accurately the model chatGPT uses.
Last time I'm gonna offer this.
ok wait
This thread also really went nowhere. Did you atleast get the 401 error fixed?
No, eivl is helping.
i dont know what you want help with
eivl is helping the most in fact.
you have not said anything about it
I think everyone is helping quite a lot
you have shared with me an assigment and some AI generated code. i still dont know what you want to do or what you need help with
He explained:
1- Don't put your assignment that you're clueless about for last minute.
2- Don't use AI exclusively to do your homework for you.
3- Don't post homework here as I have said time and time again and expect others to just do it for you and complain when you're running out of time.
We also provided help with your initial question
i want to make this project..that i have sent to you
I think we identified that you weren't providing the API key in the right way, and we also showed how to do it
The very fact he didn't just add this repeated homework solve request as a violation means he is trying to help.
yes, so what do you need help with?
ohk
His first problem, and the subject of this thread, is his error 401.
yes, XY problems are hard to help out with
I am not the best at apis, but I'm pretty sure it's how he's passing his api token.
dementati and I posted two doc links which talk about how to pass the api token properly.
@autumn cliff Have you tried either of those?
i am now making the project with text input
yes i have..the one you sent it
the url
And?
No, that was https vs wss.
The other link.
.
What is your assignment?
Best I can do for you is to help you come up with a minimal project outline to try and tackle in the remaining time you have.
Although given you just use chatGPT to write the code, I doubt that would be helpful either.
Where did you send it?
YouTube Video Finder with Analysis
Create an automation that:
Accepts voice or text input (Hindi/English).
Searches YouTube for relevant videos based on the query.
Filters the results to:
4-20 minutes in length.
Posted within the last 14 days.
Returns top 20 results.
Analyzes the video titles using Gemini 2.0 Flash or ChatGPT 4o Mini.
Outputs the best video based on title quality or relevance.
Tech Stack:
n8n / Make.com / Python
YouTube API
LLM for analysis
how can i get the youtube api
you sign up as a developer and make a dev account and app
Learn about the authorization credentials the Google API Console supports and how to find or create them.
here is the getting started page
Step 1: Take query as text input.
Step 2: Search youtube for relevant videos (based on title) with respect to step 1.
Step 3: Iterate over the list of relevant videos, check their length, and if they are within 4 and 20 minutes, add them to a new list called valid_length_videos.
Step 4: Iterate over the list of valid_length_videos and add any that was from the last 14 days to a new list called valid_videos.
Step 5: Analyze the video titles in valid_videos using Gemini 2.0 Flash or ChatGPT 4o mini.
Step 6: Print the best fits.
Guessing you don't know what search youtube for relevant videos means, it means just pass the query to youtube to get the videos (youtube does the relevancy check for you).
If you know how to call youtube's api, and have either Gemini or ChatGPT ready to go, this should take about 2-3 hours.
I don't know, never used youtube api.
Look at what eivl said.
did you read the getting started page on youtube?
His advice is much better than mine, follow what he sent there.
it is saying lot of things to do๐
i think i gonna give up for this
and tell the receiver..something
yes, the youtube api is quite the beast. lots of things to do
This was a client work?
That's usually a good idea
!close
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.