Hacker News new | past | comments | ask | show | jobs | submit login

Hmmm... so on that hugging face page there's a text box where you enter input then you click the 'compute' button.

So I asked it to "Write a python function that computes the square of the input number."

And it responds with:

     def square(x):
Which seems quite underwhelming.



I believe that is more related to how the default Huggingface inference UI is prompting. Running locally with the correct prompt template it gives default completes, eg

``` def square(x): return x*x ```




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: