Spaces:
Runtime error
Runtime error
Fix api key
Browse files
app.py
CHANGED
@@ -122,7 +122,7 @@ def config():
|
|
122 |
load_dotenv()
|
123 |
|
124 |
def call_gpt(paragraph, trigger):
|
125 |
-
openai.api_key = os.environ.get("
|
126 |
tokenizer = BartTokenizer.from_pretrained("theQuert/NetKUp-tokenzier")
|
127 |
inputs_for_gpt = f"""
|
128 |
s an article writer, your task is to provide an updated paragraph in the length same as non-updated paragraph based on the given non-updated paragraph and a triggered news.Remember, the length of updated paragraph is restricted into a single paragraph.
|
|
|
122 |
load_dotenv()
|
123 |
|
124 |
def call_gpt(paragraph, trigger):
|
125 |
+
openai.api_key = os.environ.get("GPT-API")
|
126 |
tokenizer = BartTokenizer.from_pretrained("theQuert/NetKUp-tokenzier")
|
127 |
inputs_for_gpt = f"""
|
128 |
s an article writer, your task is to provide an updated paragraph in the length same as non-updated paragraph based on the given non-updated paragraph and a triggered news.Remember, the length of updated paragraph is restricted into a single paragraph.
|