THUDM / WebGLM

WebGLM: An Efficient Web-enhanced Question Answering System (KDD 2023)
Apache License 2.0
1.57k stars 135 forks source link

Cannot generate a public link #30

Closed Lowlowlowlowlowlow closed 1 year ago

Lowlowlowlowlowlow commented 1 year ago

When I followed the prompt to add ‘share=True’ in web_demo.py, I still received no response.

Longin-Yu commented 1 year ago

Usually, if you don't need to open public links, localhost is enough. If you want, you can refer to the issue of the gradio repository.

Lowlowlowlowlowlow commented 1 year ago

I first downgraded gradio to version 3.9 pip install gradio==3.9 and then In web_demo.py, I changed line 65 from:

with gr.Blocks(theme=gr.themes.Base(), css=CSS) as demo:

to:

with gr.Blocks(css=CSS) as demo:

And it works!