Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import openai
|
|
| 6 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
| 7 |
|
| 8 |
def chat_with_gpt(input_text):
|
| 9 |
-
model_engine = "
|
| 10 |
prompt = f"{input_text} (AI):"
|
| 11 |
|
| 12 |
response = openai.Completion.create(
|
|
|
|
| 6 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
| 7 |
|
| 8 |
def chat_with_gpt(input_text):
|
| 9 |
+
model_engine = "text-davinci-002" # Choose the appropriate model engine.
|
| 10 |
prompt = f"{input_text} (AI):"
|
| 11 |
|
| 12 |
response = openai.Completion.create(
|