2 / app.py
puqi's picture
Update app.py
117b4f4
raw
history blame
393 Bytes
import streamlit as st
from transformers import pipeline
from datasets import load_dataset
import huggingface_hub as hf
import numpy as np
# Access your space by its name or ID
space = hf.get_space(space_id="puqi/test")
# Access the resource in your space
resource = space.get_resource("scoring_input_small.npy")
# Load the data from the resource
data = np.load(resource)
st.table(data)