3 ms·
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 th
by UncleOxidant 3y ago
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.
- layoric 3y agoI 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 ```