Skip to content

Commit d49f678

Browse files
Fix invalid Python syntax for Spaces Overview page (#1303)
`print(os.getenv['MODEL_REPO_ID'])` is invalid Python syntax this has been replaced with `print(os.getenv('MODEL_REPO_ID'))`
1 parent 3e4c6ef commit d49f678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/hub/spaces-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Accessing secrets and variables is different depending on your Space SDK:
8181
For other Spaces, both are exposed to your app as environment variables. Here is a very simple example of accessing the previously declared `MODEL_REPO_ID` variable in Python (it would be the same for secrets):
8282
```py
8383
import os
84-
print(os.getenv['MODEL_REPO_ID'])
84+
print(os.getenv('MODEL_REPO_ID'))
8585
```
8686

8787
Spaces owners are warned when our `Spaces Secrets Scanner` [finds hard-coded secrets](./security-secrets).

0 commit comments

Comments
 (0)