Spaces:
Runtime error
Runtime error
Update src/app.py
Browse files- src/app.py +1 -2
src/app.py
CHANGED
|
@@ -15,9 +15,8 @@ def execute_remote_script(url: str): # code_str: str
|
|
| 15 |
If it defines a `main()` function, call it.
|
| 16 |
"""
|
| 17 |
try:
|
| 18 |
-
headers = {"Authorization": f"Bearer {token}"}
|
| 19 |
-
|
| 20 |
# Send a GET request to the URL
|
|
|
|
| 21 |
response = requests.get(url,headers=headers)
|
| 22 |
# response.raise_for_status() # Raises an HTTPError for bad responses
|
| 23 |
|
|
|
|
| 15 |
If it defines a `main()` function, call it.
|
| 16 |
"""
|
| 17 |
try:
|
|
|
|
|
|
|
| 18 |
# Send a GET request to the URL
|
| 19 |
+
headers = {"Authorization": f"Bearer {token}"}
|
| 20 |
response = requests.get(url,headers=headers)
|
| 21 |
# response.raise_for_status() # Raises an HTTPError for bad responses
|
| 22 |
|