Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ def img2text(image):
|
|
| 26 |
|
| 27 |
# 定义文本生成函数
|
| 28 |
def text2text(user_input):
|
| 29 |
-
api_key = os.getenv
|
| 30 |
base_url = "https://openrouter.ai/api/v1"
|
| 31 |
|
| 32 |
headers = {
|
|
@@ -147,7 +147,7 @@ def text2vid_pro(input_text,desc = "4k, high resolution"):
|
|
| 147 |
|
| 148 |
def text2text_A(user_input):
|
| 149 |
# 设置API密钥和基础URL
|
| 150 |
-
api_key = os.getenv
|
| 151 |
base_url = "https://openrouter.ai/api/v1"
|
| 152 |
|
| 153 |
headers = {
|
|
|
|
| 26 |
|
| 27 |
# 定义文本生成函数
|
| 28 |
def text2text(user_input):
|
| 29 |
+
api_key = os.getenv ("openai_apikey")
|
| 30 |
base_url = "https://openrouter.ai/api/v1"
|
| 31 |
|
| 32 |
headers = {
|
|
|
|
| 147 |
|
| 148 |
def text2text_A(user_input):
|
| 149 |
# 设置API密钥和基础URL
|
| 150 |
+
api_key = os.getenv ("openai_apikey")
|
| 151 |
base_url = "https://openrouter.ai/api/v1"
|
| 152 |
|
| 153 |
headers = {
|