Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,9 +2,6 @@ import streamlit as st
|
|
| 2 |
import openai
|
| 3 |
import numpy as np
|
| 4 |
|
| 5 |
-
# Setting the OpenAI API Key
|
| 6 |
-
openai.api_key = "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"
|
| 7 |
-
|
| 8 |
def generate_response(prompt):
|
| 9 |
completions = openai.Completion.create(
|
| 10 |
engine="text-davinci-002",
|
|
|
|
| 2 |
import openai
|
| 3 |
import numpy as np
|
| 4 |
|
|
|
|
|
|
|
|
|
|
| 5 |
def generate_response(prompt):
|
| 6 |
completions = openai.Completion.create(
|
| 7 |
engine="text-davinci-002",
|