Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,9 +5,9 @@ import dashscope
|
|
| 5 |
from dashscope import Generation
|
| 6 |
|
| 7 |
# Set up the API key for Dashscope
|
| 8 |
-
|
| 9 |
-
dashscope.api_key =
|
| 10 |
-
print(
|
| 11 |
app = FastAPI()
|
| 12 |
|
| 13 |
math_messages = []
|
|
|
|
| 5 |
from dashscope import Generation
|
| 6 |
|
| 7 |
# Set up the API key for Dashscope
|
| 8 |
+
headers = {"Authorization": f"Bearer {os.getenv('HF_TOKEN')}"}
|
| 9 |
+
dashscope.api_key = headers
|
| 10 |
+
print(dashscope.api_key)
|
| 11 |
app = FastAPI()
|
| 12 |
|
| 13 |
math_messages = []
|