Spaces:
Running
Running
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 =
|
| 30 |
base_url = "https://openrouter.ai/api/v1"
|
| 31 |
|
| 32 |
headers = {
|
|
@@ -116,7 +116,7 @@ def text2vid(input_text):
|
|
| 116 |
|
| 117 |
def text2text_A(user_input):
|
| 118 |
# 设置API密钥和基础URL
|
| 119 |
-
api_key =
|
| 120 |
base_url = "https://openrouter.ai/api/v1"
|
| 121 |
|
| 122 |
headers = {
|
|
|
|
| 26 |
|
| 27 |
# 定义文本生成函数
|
| 28 |
def text2text(user_input):
|
| 29 |
+
api_key = openai_apikey
|
| 30 |
base_url = "https://openrouter.ai/api/v1"
|
| 31 |
|
| 32 |
headers = {
|
|
|
|
| 116 |
|
| 117 |
def text2text_A(user_input):
|
| 118 |
# 设置API密钥和基础URL
|
| 119 |
+
api_key = openai_apikey
|
| 120 |
base_url = "https://openrouter.ai/api/v1"
|
| 121 |
|
| 122 |
headers = {
|