Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,11 +13,11 @@ st.set_page_config(layout="wide")
|
|
13 |
|
14 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
15 |
|
16 |
-
ds = load_dataset("HuggingFaceH4/instruction-
|
17 |
|
18 |
st.markdown("# Instruction Model Outputs")
|
19 |
st.markdown(
|
20 |
-
"""This app shows the outputs of various open-souce, instruction-trained models from a [dataset](https://huggingface.co/datasets/HuggingFaceH4/instruction-
|
21 |
)
|
22 |
st.markdown(
|
23 |
"""**Notes**
|
@@ -34,7 +34,7 @@ if button is True:
|
|
34 |
for sample in sample_ds:
|
35 |
st.markdown(f'**Prompt:** {sample["prompt"]}')
|
36 |
|
37 |
-
df = pd.DataFrame.from_records(sample["
|
38 |
|
39 |
# CSS to inject contained in a string
|
40 |
hide_table_row_index = """
|
|
|
13 |
|
14 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
15 |
|
16 |
+
ds = load_dataset("HuggingFaceH4/instruction-pilot-outputs-filtered", split="train", use_auth_token=HF_TOKEN)
|
17 |
|
18 |
st.markdown("# Instruction Model Outputs")
|
19 |
st.markdown(
|
20 |
+
"""This app shows the outputs of various open-souce, instruction-trained models from a [dataset](https://huggingface.co/datasets/HuggingFaceH4/instruction-pilot-outputs-filtered) of human demonstrations filtered for overlap with the original prompt and canned responses. Hit the button below to view a few random samples from the generated outputs."""
|
21 |
)
|
22 |
st.markdown(
|
23 |
"""**Notes**
|
|
|
34 |
for sample in sample_ds:
|
35 |
st.markdown(f'**Prompt:** {sample["prompt"]}')
|
36 |
|
37 |
+
df = pd.DataFrame.from_records(sample["filtered_outputs"])
|
38 |
|
39 |
# CSS to inject contained in a string
|
40 |
hide_table_row_index = """
|