Error: agent course

I get an error then Duplicating space:
To create a public link, set share=True in launch().

  1. choose: public

I need help, guys!!!

1 Like

This is not an error in itself. A warning is like a notice, so you can ignore it unless you are doing maintenance.

If it doesnโ€™t work, there is probably another cause.

the difference between us)))

1 Like

1 Like

I think Iโ€™ve figured out the cause. (Even though it didnโ€™t exist when the space was created, it still worked.) There was a change that made it so that it would no longer work unless the HF_TOKEN secret was set, but the template didnโ€™t support it.

If you set your valid READ token to the HF_TOKEN secret, it should probably work.

1 Like

same error:
Logs

buildcontainer

View Dev ModeLock scrollClear

===== Application Startup at 2025-03-26 07:58:45 ===== tool.py: 0%| | 0.00/635 [00:00<?, ?B/s] tool.py: 100%|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 635/635 [00:00<00:00, 4.50MB/s] * Running on local URL: http://0.0.0.0:7860, with SSR :high_voltage: (experimental, to disable set ssr=False in launch()) /usr/local/lib/python3.10/site-packages/gradio/blocks.py:2680: UserWarning: Setting share=True is not supported on Hugging Face Spaces warnings.warn( To create a public link, set share=True in launch().

1 Like

token done, but error is staying

1 Like

Hmmโ€ฆ It works for meโ€ฆ

Log

===== Application Startup at 2025-03-26 10:52:49 =====


tool.py:   0%|          | 0.00/635 [00:00<?, ?B/s]
tool.py: 100%|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 635/635 [00:00<00:00, 3.29MB/s]
* Running on local URL:  http://0.0.0.0:7860, with SSR โšก (experimental, to disable set `ssr=False` in `launch()`)
/usr/local/lib/python3.10/site-packages/gradio/blocks.py:2680: UserWarning: Setting share=True is not supported on Hugging Face Spaces
  warnings.warn(

To create a public link, set `share=True` in `launch()`.
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ New run โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚                                                                              โ”‚
โ”‚ test                                                                         โ”‚
โ”‚                                                                              โ”‚
โ•ฐโ”€ HfApiModel - Qwen/Qwen2.5-Coder-32B-Instruct โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” Step 1 โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
 โ”€ Executing parsed code: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ 
  import math                                                                   
  square_root = math.sqrt(144)                                                  
  final_answer(square_root)                                                     
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ 
Out - Final answer: 12.0
[Step 1: Duration 4.48 seconds| Input tokens: 2,010 | Output tokens: 85]

By the way, if you can use Discord, there is a dedicated Agents Course question corner on HF Discord.

Thanks for a help, bro :handshake:

1 Like


WTF?)))))

1 Like

Python is one of the few programming languages that is broken by just indentation, even a whitespace. Use an editor like VSCode. Itโ€™s tough to use Notepad.

i know what the python)))) And I fixed it.
But the same problem remains.

1 Like

You need to set the HF_TOKEN secretโ€ฆ

i did it yet(((

i think that problem into the code

1 Like