Can't scroll down in Streamlit deployed with HF Space
Hey I was playing around with HF space. Trying out Baichuan-13B-Chat model.I had app.py setup following:github.combaichuan-inc/Baichuan-13B/blob/main/web_demo.pyimport json
import torch
import streamlit as st
from transformers import AutoModelForCausalLM, AutoTokenizer
from transformers.generation.utils import GenerationConfig


st.set_page_config(page_title="Baichuan-13B-Chat")
st.title("Baichuan-13B-Chat")


@st.cache_resource
def init_model():
    model = AutoModelForCausalLM.from_pretrained(
        "baichuan-inc/Baichuan-13B-Chat",
        torch_dtype=torch.float16,
        device_map="auto",
        trust_remote_code=True
    )
    model.generation_config = GenerationConfig.from_pretrained(This file has been truncated.show originalAnd had my space here:huggingface.coBaichuan 13B Chat Int8 - a Hugging Face Space by WinterGYCDiscover amazing ML apps made by the communityI had streamlit 1.24.0However as it turns out I cannot scroll when chat history becomes long. This is very different from the local experience and also very different from the GIF demo in their GitHub.Any ideas?
2023-08-15T07:50:42Z
cc@whitphxmight have some ideas here
2023-08-15T09:45:42Z
Hi@WinterGYCCould you please try upgrading Streamlit to 1.25 or higher?There was a scrolling problem with 1.24 on the HF platform and it was fixed with the 1.25.0 release.However, the problem you reported sounds different from the known issue on 1.24 which was discussed inthe post, so please let us know if it’s actually a different thing and upgrading Streamlit doesn’t solve the problem.Thank you.