Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import gradio as gr
|
|
| 5 |
def answer_chatgpt(api_key, message):
|
| 6 |
# OPENAI API KEY
|
| 7 |
openai.api_key = api_key
|
| 8 |
-
prompt = (f"{message}")
|
| 9 |
response = openai.Completion.create(
|
| 10 |
engine="text-davinci-003",
|
| 11 |
prompt=prompt,
|
|
|
|
| 5 |
def answer_chatgpt(api_key, message):
|
| 6 |
# OPENAI API KEY
|
| 7 |
openai.api_key = api_key
|
| 8 |
+
prompt = (f"You are GPT-3, you are in a web interface and reply to my following message: {message}")
|
| 9 |
response = openai.Completion.create(
|
| 10 |
engine="text-davinci-003",
|
| 11 |
prompt=prompt,
|