Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def create_image_prompts(script, openai_api_key):
|
|
18 |
|
19 |
def predict(inputs, top_p, temperature, openai_api_key):
|
20 |
# OpenAI API๋ฅผ ์ฌ์ฉํ์ฌ ์คํฌ๋ฆฝํธ ์์ฑ
|
21 |
-
narration_prompt = f"์๋์ฉ ์ ๋๋ฉ์ด์
๋์์์ ์ฌ์ฉํ ์คํฌ๋ฆฝํธ๋ฅผ ์์ฑํ๋ผ. ๋ฐ๋์ ํ๊ธ๋ก ์์ฑํ ๊ฒ. ์
๋ ฅ: '{inputs}'"
|
22 |
headers = {
|
23 |
"Content-Type": "application/json",
|
24 |
"Authorization": f"Bearer {openai_api_key}"
|
|
|
18 |
|
19 |
def predict(inputs, top_p, temperature, openai_api_key):
|
20 |
# OpenAI API๋ฅผ ์ฌ์ฉํ์ฌ ์คํฌ๋ฆฝํธ ์์ฑ
|
21 |
+
narration_prompt = f"์๋์ฉ ์ ๋๋ฉ์ด์
๋์์์ ์ฌ์ฉํ ์คํฌ๋ฆฝํธ๋ฅผ ์์ฑํ๋ผ. ๋ฐ๋์ ํ๊ธ๋ก ์์ฑํ ๊ฒ. ์ผ์ฒด์ ์ง๋ฌธ์ด๋ ์ง์์ด, ์ค๋ช
๋ถํธ ๋ฑ์ ํฌํจ์ํค์ง ๋ง๊ฒ. ์
๋ ฅ: '{inputs}'"
|
22 |
headers = {
|
23 |
"Content-Type": "application/json",
|
24 |
"Authorization": f"Bearer {openai_api_key}"
|