Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ HF_TOKEN = os.getenv("HF_TOKEN") # Make sure you set the HF_TOKEN in your envir
|
|
31 |
@app.route('/restart_space', methods=['POST'])
|
32 |
def api_restart_space():
|
33 |
"""API route to restart a Hugging Face Space."""
|
34 |
-
space_id = '
|
35 |
factory_reboot = request.json.get('factory_reboot', False) # Optional: Set to True if you want a factory reboot
|
36 |
|
37 |
if not space_id:
|
|
|
31 |
@app.route('/restart_space', methods=['POST'])
|
32 |
def api_restart_space():
|
33 |
"""API route to restart a Hugging Face Space."""
|
34 |
+
space_id = 'NanobotzAI/web-scraper'
|
35 |
factory_reboot = request.json.get('factory_reboot', False) # Optional: Set to True if you want a factory reboot
|
36 |
|
37 |
if not space_id:
|