Fork me on GitHub

随笔分类 -  Python

摘要:bing官方api搜索引擎 1. bing API说明 微软 Bing 的搜索 API 使得开发者能够将 Bing 的搜索能力集成到自己的应用中,包括对网页、图片、新闻、视频的搜索,以及提供了实体搜索和视觉搜索的功能。这些 API 支持安全、无广告且能够根据地理位置提供相关信息的搜索结果。Bing 阅读全文
posted @ 2024-08-02 10:37 壶小旭 阅读(1331) 评论(1) 推荐(0) 编辑
摘要:paddleocr 在docker环境下部署 第一步 查看cuda的版本nvcc -V,我的是11.2;nvidia-smi 对应的cuda version是11.6,所以采用了registry.baidubce.com/paddlepaddle/paddle:latest-dev-cuda11.6 阅读全文
posted @ 2024-03-15 16:02 壶小旭 阅读(1392) 评论(0) 推荐(0) 编辑
摘要:PaddleOCR安装过程中的ERROR OSError: (External) CUDA error(222), the provided PTX was compiled with an unsupported toolchain.. [Hint: 'cudaErrorUnsupportedPt 阅读全文
posted @ 2023-10-07 16:05 壶小旭 阅读(1667) 评论(0) 推荐(0) 编辑
摘要:## paddlespeech安装出现的问题 操作系统Ubuntu ImportError: libssl.so.1.1: cannot open shared object file: No such file or directory ![](https://img2023.cnblogs.co 阅读全文
posted @ 2023-08-16 16:57 壶小旭 阅读(2178) 评论(0) 推荐(0) 编辑
摘要:# anaconda的虚拟python环境配置jupyter ```shell #进入虚拟环境后安装nb_conda conda install nb_conda #配置端口号 jupyter notebook --generate-config #依据生成的文件,进行vim修改,添加下面内容 vi 阅读全文
posted @ 2023-07-05 16:15 壶小旭 阅读(61) 评论(0) 推荐(0) 编辑
摘要:## FastAPI跨域配置 ```python from fastapi import FastAPI import uvicorn from fastapi.middleware.cors import CORSMiddleware #解决跨域问题 import os import redis 阅读全文
posted @ 2023-06-07 10:01 壶小旭 阅读(1196) 评论(0) 推荐(1) 编辑
摘要:import requests from bs4 import BeautifulSoup """ description:爬取東方語言學網 word:待查字 zu:閩語|吳語|平話|客家|贛語|官話 """ def crawl_main(word, zu): url = "http://eastl 阅读全文
posted @ 2022-11-03 20:30 壶小旭 阅读(66) 评论(0) 推荐(0) 编辑
摘要:安装python依赖包 pip install fastapi pip install uvicorn 示例脚本main.py #示例脚本main.py from fastapi import FastAPI app = FastAPI() @app.get("/") async def root( 阅读全文
posted @ 2022-07-22 16:05 壶小旭 阅读(216) 评论(0) 推荐(0) 编辑
摘要:word2Vec实战解读 word2vec介绍 Word2vec,是一群用来产生词向量的相关模型。这些模型为浅而双层的神经网络,用来训练以重新建构语言学之词文本。网络以词表现,并且需猜测相邻位置的输入词,在word2vec中词袋模型假设下,词的顺序是不重要的。训练完成之后,word2vec模型可用来 阅读全文
posted @ 2022-02-21 14:42 壶小旭 阅读(446) 评论(0) 推荐(0) 编辑
摘要:#error:underlying buffer has been detached #环境:Docker、Django3.2.5、pyhton3.6 **情景:**当我每次执行 python3 manage.py runserver 0.0.0.0:8000时,都会出现以上错误 最终发现问题所在是 阅读全文
posted @ 2021-11-03 08:01 壶小旭 阅读(1230) 评论(0) 推荐(0) 编辑
摘要:#BaiduMap路程计算def getDistance(deslat,deslng,originlat,originlng): url='http://api.map.baidu.com/directionlite/v1/driving?origin='+str(originlat)+','+str(originlng)+'&destination='+str(deslat)+','+... 阅读全文
posted @ 2019-03-22 17:19 壶小旭 阅读(317) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示