zhaokeyao1 commited on
Commit ·
4646690
1
Parent(s): 4b196d1
Update self
Browse files
app.py
CHANGED
|
@@ -157,8 +157,8 @@ def predict(password_input, user_in_file):
|
|
| 157 |
api_key=os.environ.get("TONGYI_API_KEY"), # �滻����ʵDashScope��API_KEY
|
| 158 |
base_url="https://dashscope.aliyuncs.com/compatible-mode/v1", # ��дDashScopebase_url
|
| 159 |
)
|
| 160 |
-
file =
|
| 161 |
-
completion =
|
| 162 |
model="qwen-long",
|
| 163 |
messages=[
|
| 164 |
{
|
|
|
|
| 157 |
api_key=os.environ.get("TONGYI_API_KEY"), # �滻����ʵDashScope��API_KEY
|
| 158 |
base_url="https://dashscope.aliyuncs.com/compatible-mode/v1", # ��дDashScopebase_url
|
| 159 |
)
|
| 160 |
+
file = client.files.create(file=Path(user_in_file), purpose="file-extract")
|
| 161 |
+
completion = client.chat.completions.create(
|
| 162 |
model="qwen-long",
|
| 163 |
messages=[
|
| 164 |
{
|