Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import os
|
|
| 3 |
from dashscope import Generation
|
| 4 |
|
| 5 |
# Set API key
|
| 6 |
-
YOUR_API_TOKEN = os.getenv('
|
| 7 |
dashscope.api_key = YOUR_API_TOKEN
|
| 8 |
|
| 9 |
app = FastAPI()
|
|
|
|
| 3 |
from dashscope import Generation
|
| 4 |
|
| 5 |
# Set API key
|
| 6 |
+
YOUR_API_TOKEN = os.getenv('HF_TOKEN')
|
| 7 |
dashscope.api_key = YOUR_API_TOKEN
|
| 8 |
|
| 9 |
app = FastAPI()
|