0hq / WebGPT

Run GPT model on the browser with WebGPU. An implementation of GPT inference in less than ~1500 lines of vanilla Javascript.
https://kmeans.org
Other
3.61k stars 206 forks source link

I get this error lol #16

Closed adarshxs closed 1 year ago

adarshxs commented 1 year ago

Access to fetch at 'file:///C:/Users/idgaf/OneDrive/Desktop/WebGPT/models/better_shakespeare/params_gpt.json' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, isolated-app, chrome-extension, chrome, https, chrome-untrusted.

Cuz we are loading the model using either file:// or C:/, which stays true to the error message as they are not http://

I'll PR a fix in the readme

0hq commented 1 year ago

Ah got it, I should make this clearer.

adarshxs commented 1 year ago

Ya just spin up a local server in the working dir