Relationship between Backend/File/web/index.html & UI Builder?

Can I please have a quick explanation of when this file should and should not be updated?

For example, I uploaded my css and javascript files to the web folder. I pasted my html content into the index.html file.

I now want to add backend functionality to the index.html. How would do that? Put another way, what is the connection between this index.html page and the UI builder?

Hello @MobiCycle

Could you please clarify what you mean when say I now want to add backend functionality to the index.html.? Do you want to call some API Service from your client js code placed in the /web/... directory?

Put another way, what is the connection between this index.html page and the UI builder?

Actually, there is no strict relation, the Files service is developed for hosting static files and since UI-Builder produces static files they can be placed to the /web directory to be placed into any other directory, so as you can see it’s definitely up to you where you want to deploy your UI-Builder application

Regards, Vlad

Hi Vlad, Apologies for the delayed response. I want to call an API from HuggingFace. I have an input box, a results box, and a submit button.

Hello @MobiCycle!

It’s not quite clear to me what you’re trying to do. But if you need to make a request to an external API, you can use this block to do that:

Regards,
Alexander