GPT-3 Demo // GPT-3 Beginners Tutorial with Python - Installation and Setup | www.demohub.dev

GPT-3 Demo // GPT-3 Beginners Tutorial with Python - Installation and Setup | www.demohub.dev

50,544 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Tygyver
Tygyver - 10.02.2023 06:42

Here's the entire code, I even improved upon it because it was useless, you couldn't input more than once without re-launching.



import openai

def generate_text(stext):
openai.api_key = "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"
response = openai.Completion.create(
engine="davinci-instruct-beta",
prompt=stext,
temperature=0.5,
max_tokens=1000,
top_p=1,
frequency_penalty=0,
presence_penalty=0
)
content = response.choices[0].text
return content

while True:
query = input("Enter your query: ")
if query == 'quit':
break
response = generate_text(query)
print("Response:", response)

Ответить
Cali
Cali - 31.01.2023 07:04

What python version is this? Mine doesn't look like this at all

Ответить
vtrandal
vtrandal - 20.01.2023 10:09

Lucky for me I know how to use a command line (pip install openai). At the end you mentioned Java. Did you create a QuickStart video for OpenAI in Java? If so then I would like to see that.

Ответить
dragomir cristian
dragomir cristian - 19.01.2023 03:04

thats wy i will never belive what AI is telling me because is not bias. stiil i will create an AI for other thinks, but not for: "WAT IS GLOBAL WARMING?"

Ответить
AllThingzDynamite!
AllThingzDynamite! - 14.01.2023 16:53

What app do you use for coding?

Ответить
Jonathan Luker
Jonathan Luker - 28.12.2022 16:00

For the giggles, you can ask GPT3 to write the python code - tell it what your API key is and ask it to write a chat bot using a Webhook. Ask it to include the temp parameters or whatever and it'll spit out working code. Was quite fun!

Ответить
Luc Retour
Luc Retour - 03.11.2022 16:25

10/10 tutorial, you are a fantastic teacher - from a tired 4th year working on his thesis

Ответить
Juste Fanou
Juste Fanou - 28.10.2022 04:10

brother, please hide your API key.

Ответить
Astrovic
Astrovic - 17.10.2022 10:24

if I try to run this code it says "error: no commands supplied"
does somebody know why this could be? thank you in advance

Ответить
Timothy Morehouse
Timothy Morehouse - 10.10.2022 01:39

Bro you are smart

Ответить
Shukrant Patil
Shukrant Patil - 26.08.2022 11:23

Amazing ! I wonder how can one create an android app with this ( just a simple chat bot app )
I do not know much about coding but I’m learning day by day :)

Ответить
Nicolas Bevilaqua
Nicolas Bevilaqua - 01.08.2022 16:51

I was having problems in executing with others on yt, but you solved! Thank you! God Bless

Ответить
James Bentley
James Bentley - 25.06.2022 08:34

excellent video and example

Ответить
Stop Lying About Black Men
Stop Lying About Black Men - 21.06.2022 19:54

You are a tremendous instructor. Thank you so much!

Ответить
P Berhe
P Berhe - 13.06.2022 04:45

Yes, do this in JAVA!!

Ответить
P Berhe
P Berhe - 13.06.2022 04:37

Can you please show how to do this for node.js?

Ответить
Jeff Holmes
Jeff Holmes - 06.05.2022 05:34

Helpful video! Do you know if there is a way to send multiple queries that are related, so that GPT-3 recognizes that each follow up question is related to the previous answer? I haven't seen anyone commenting on this capability. This functionality is needed in a setting where you want to ask something to clarify the last output from GPT-3. Thanks!

Ответить
kill notation
kill notation - 05.05.2022 03:12

Can you tell more about Parameters like tempreature etc and FIne Tuning

Ответить
Sam Brown
Sam Brown - 01.05.2022 11:38

I get an error.
Import error : No Module named openai

Ответить
Fakrul
Fakrul - 01.05.2022 09:55

How do you make it write more? Like if I want to write a long paragraph/intro/conclusion about anything, how do I do it? Do I need to ask the question differently, or what? Thanks a lot. Great video. Subscribed

Ответить
A son of YAH
A son of YAH - 29.04.2022 17:08

Thank you very much for taking the time to make this video. I am working on my first conversational AI project using Python and this was very helpful to get started.

Ответить
Tj 'Spoon Man' Jacques
Tj 'Spoon Man' Jacques - 16.04.2022 01:02

INSTANT FOLLOW AND LIKE!!! Thank you for high-quality videos with new developers in mind. You were born to teach - MCH LOVE FROM NEW ORLEANS!!!

Ответить
Wais Yousofi
Wais Yousofi - 03.04.2022 00:39

can you tell how to use summarization from gpt3 api

Ответить
Romain Rochas
Romain Rochas - 29.03.2022 21:27

Thank youuuuu. The openAI begginer exemple project is so miss explained...

Ответить
The Game Vortex
The Game Vortex - 22.03.2022 16:04

I thought it was closed beta?
Because i shouldnt have access -_-

Ответить
Costerius
Costerius - 22.02.2022 01:14

BRO thank you i got it going straight away after watching this (edit: Even almost a year later)

Ответить
Marto Nino
Marto Nino - 31.01.2022 02:09

I keep getting the following errors randomly:

1. NameError: name 'choices' is not defined
2. NameError: name 'response' is not defined

Ответить
CGBasic
CGBasic - 11.01.2022 04:57

thx, would like if script was in description

Ответить
Ambient Mind Relaxing Sleep
Ambient Mind Relaxing Sleep - 28.12.2021 23:09

Please my friend tell me how to put the openai library into python and where to download it?

Ответить
Harrison McDonald
Harrison McDonald - 28.12.2021 09:38

What exactly did you paste? How do I get to that?

Ответить
Cyborg Writing
Cyborg Writing - 09.12.2021 19:15

I don't use Python so I wondered about the Import. Is the library available to install as long as you are using a Python IDE? Or is there a specific IDE required?

Ответить
User4Gent
User4Gent - 23.11.2021 19:39

Why did you share your key?

Ответить
Franco Samurai
Franco Samurai - 18.11.2021 22:46

Does it works offline?

Ответить
Просто Так
Просто Так - 14.11.2021 13:23

@Tech With Fru, You said you would do it in Java. Have you done it? If you did, then give me the link, because I can't find it. If you haven't, can you make a lesson on Java, too?


Also. I can not get the API. The site says "The account you signed up with does not yet have an invite".

Ответить
tom antony
tom antony - 08.10.2021 17:32

What ryt ai uses

Ответить
ShockedCroissant
ShockedCroissant - 30.09.2021 11:29

Thank you!

Ответить
The Anonymous
The Anonymous - 19.09.2021 02:47

You need a invite...you can’t even use it until your invited and then you’ll get the API Key to use the program... here I was thinking you could use it but the waiting list I’ve been on it for months now still nothing

Ответить
Kenneth Eisinger
Kenneth Eisinger - 18.09.2021 05:55

Can’t wait to try this

Ответить
Christopher Salas
Christopher Salas - 13.09.2021 19:15

Excelent! A question, maybe i can feed de IA with especific information, text, like a text or a book, and the IA only responses with information of that text?

Ответить
Baskate
Baskate - 18.08.2021 00:02

Another great video

Ответить
SqueakyCamp
SqueakyCamp - 17.08.2021 15:44

hey, i just wanted to point out that you have exposed your api key in the video. That really isnt good and i would recommend doing something about it so nobody can take advantage of that

Ответить
sehuhun vivi
sehuhun vivi - 13.08.2021 20:37

thank you so much
can you do the translation of gpt-3 because i dont get it if you build a gpt-3 u gonna be basicaly also getting in result how the algorithm gonna tarnslate for you or you have to do it separately

Ответить
Life
Life - 11.08.2021 04:54

it mean for sale and not free?

Ответить
Logan Murray
Logan Murray - 07.08.2021 23:22

Great video!

Ответить
Ömer Ayhan
Ömer Ayhan - 03.08.2021 19:33

Thank you so much! I was confused and I was about to give up but then I've seen your video which helped me to work with the API

Ответить
Fabian L
Fabian L - 03.08.2021 14:09

Is there a possibility of making a video for a chatbot? i dont know how to save the answers or inputs allready given, to lead a consisting conversation

Ответить
Zachery Sanchez
Zachery Sanchez - 14.07.2021 19:37

Very helpful, thank you for uploading!

Ответить
Giannis Methenitis
Giannis Methenitis - 04.07.2021 13:52

Such a helpful video! Thank you Fru :)

Ответить
Anthony Eze
Anthony Eze - 30.06.2021 02:16

Very good content 🙂

Ответить