Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import os
|
|
| 2 |
from fastapi import FastAPI, HTTPException
|
| 3 |
from pydantic import BaseModel
|
| 4 |
import dashscope
|
| 5 |
-
from dashscope import Generation
|
| 6 |
|
| 7 |
# Set up the API key for Dashscope
|
| 8 |
headers = {"Authorization": f"Bearer {os.getenv('HF_TOKEN')}"}
|
|
|
|
| 2 |
from fastapi import FastAPI, HTTPException
|
| 3 |
from pydantic import BaseModel
|
| 4 |
import dashscope
|
| 5 |
+
from dashscope import MultiModalConversation, Generation
|
| 6 |
|
| 7 |
# Set up the API key for Dashscope
|
| 8 |
headers = {"Authorization": f"Bearer {os.getenv('HF_TOKEN')}"}
|