Hugo-Persson / obsidian-ocrlatex

This is a plugin for obsidian that will read your latest copied image from clipboard and generate math latex from it
MIT License
24 stars 3 forks source link

I apologize, I'm getting an error deploying texify to the server. #12

Closed math-feng closed 7 months ago

math-feng commented 7 months ago

How exactly this error came about is not clear to me. Because I don't know the server very well. The first item about texify I put in the public ip address, followed by the account and password, which is the account and password I use to log into the cloud server.

One weird thing, I obviously changed the first item, but it still comes up every time I report an error.

image

Hugo-Persson commented 7 months ago

Hi! Is this the same issue as https://github.com/Hugo-Persson/obsidian-ocrlatex/issues/13?

Could you send a screenshot of your configured settings?

math-feng commented 7 months ago

yes

I'm omitting three numbers on the first line for the sake of privacy

math-feng commented 7 months ago

A very important fact is that no matter how I set it up, the server address at runtime points to the local

Hugo-Persson commented 7 months ago

Ok nice catch! I will look into it before the day is done and get back to you.

Hugo-Persson commented 7 months ago

I have released a new version 1.1.1 could you try that @math-feng ?

Hugo-Persson commented 7 months ago

Nvm use version 1.1.2, fixed another bug

math-feng commented 7 months ago
root@iZkzr13nj40jdwZ:~# curl -X POST -F "image=@/www/wwwroot/resource/Obsidian_24_04_05_138.png" http://127.0.0.1:8000/predict
{"error":"We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like vikp/texify is not the path to a directory containing a file named config.json.\nCheckout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'."}
root@iZkzr13nj40jdwZ:~# 

This is the result of my testing on the server, probably caused by my network limitations in China.

Hugo-Persson commented 7 months ago

Oh yeah that might be a problem with China. Maybe use a VPN?

math-feng commented 7 months ago

If you use a VPN in a server, the server will be blocked

Hugo-Persson commented 7 months ago

I am closing this issue and will continue in https://github.com/Hugo-Persson/texify-wep-api/issues/1