Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When i python cli_demo.py -w THUDM/WebGLM-2B then error come out #55

Open
eu09 opened this issue Jul 27, 2023 · 2 comments
Open

When i python cli_demo.py -w THUDM/WebGLM-2B then error come out #55

eu09 opened this issue Jul 27, 2023 · 2 comments

Comments

@eu09
Copy link

eu09 commented Jul 27, 2023

what is sentence in hong kong for sex at public area
[System] Searching ...
[System] Count of available urls: 7
[System] Fetching ...
[System] Count of available fetch results: 1786951
[System] Extracting ...
[System] Count of paragraphs: 516
[System] Filtering ...
Reference 1: Prostitution in Hong Kong is legal, but subject to various restrictions, mainly intended to keep it away from the public eye. These restrictions are manifested in the form of prohibiting a whole host of activities surrounding prostitution, including soliciting and advertising for sex, working as pimps, running brothels and organised prostitution. For instance, by the Hong Kong legal code Chapter 200 Section 147, any person who "solicits for any immoral purpose" in a public place may receive a maximum penalty of HK$10,000 ($1,280) and six months' imprisonment. In practice, a woman on the street in certain areas well known for streetwalkers such as Sham Shui Po might well be arrested even if seen smiling at a male passer-by. Advertisement of sex services, including signboards, illuminated signs and posters, is also prohibited, and an offence may result in imprisonment for 12 months. In a test case in 2005 involving sex141.com – an internet site created by two programmers who tailored on-line advertisements for prostitutes – its two principals were convicted of one count each of "conspiring to live off the earnings of prostitution arising from the ads that appeared on their website". ...
Reference 2: Organized prostitution, in the form of directing "over another person for the purpose of... that person's prostitution", is forbidden by Section 130, and an offence may result in 14 years of imprisonment. Sections 131 and 137, which are aimed at pimps, stipulate a jail sentence of seven years as the maximum penalty for "procuring another person to become a prostitute" and "living on earnings of prostitution of others". Under Hong Kong law, it is also illegal to organise arrangement of sex deals for more than one woman; violators are subject to a HK$20,000 fine and seven years' imprisonment. Therefore, if two women are found serving customers in the same apartment, it is an illegal brothel. This gives rise to the so-called "one-woman brothel" where one woman receives customers in her apartment. This is the most common form of legal prostitution in Hong Kong. The law prohibits the prostitution of girls below the age of 16 for vaginal sex, below 21 for anal sex and boys below 21 for gross indecency(嚴重猥褻).
Reference 3: (1) and (2) The offence of "outraging public decency" under the common law is punishable with imprisonment of up to seven years in accordance with section 101I of the Criminal Procedure Ordinance (Cap. 221). Section 148 of the Crimes Ordinance (Cap. 200) stipulates that a person who, without lawful authority or excuse, in any public place or in view of the public indecently exposes any part of his body shall be guilty of an offence and shall be liable on conviction to a fine of $1,000 and to imprisonment for six months. According to section 21 of the Control of Obscene and Indecent Articles Ordinance (Cap. 390), any person who publishes any obscene article in Hong Kong commits an offence and is liable on conviction to a maximum penalty of a fine of $1 million and imprisonment for three years.
Reference 4: If a person, without lawful authority or excuse, indecently exposes any part of his body, in any public place or in view of the public, he can be found guilty of indecent exposure and faces a maximum fine of HK$1,000 or a maximum period of imprisonment of 6 months. The law, however, specifically allows persons under the age of 12 to bath unclothed.
Reference 5: It is an offence contrary to section 132(1) of the Crimes Ordinance (Cap. 200) to procure a girl under 21 years’ of age to have unlawful sexual intercourse in Hong Kong or elsewhere with a third person.
Traceback (most recent call last):
File "/home/elohlinux/WebGLM/cli_demo.py", line 21, in
for results in webglm.stream_query(question):
File "/home/elohlinux/WebGLM/model/modeling_webglm.py", line 51, in stream_query
assert len(f) > 0
AssertionError

@eu09
Copy link
Author

eu09 commented Jul 27, 2023

I check when return result have chinese character ,then it return error.

@eu09
Copy link
Author

eu09 commented Jul 27, 2023

another issue is when I use bing as search engine

[System] Searching ...
No Bing Result
Traceback (most recent call last):
File "/home/elohlinux/WebGLM/cli_demo.py", line 21, in
for results in webglm.stream_query(question):
File "/home/elohlinux/WebGLM/model/modeling_webglm.py", line 36, in stream_query
refs = self.ref_retriever.query(question)
File "/home/elohlinux/WebGLM/model/retriever/init.py", line 19, in query
urls = [result.url for result in search_results]
TypeError: 'NoneType' object is not iterable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant