Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WIP
## Setup
1. Download the repo
2. Navigate to root directory of the repo
3. Install requirements with `pip install -r requirements.txt`
3. Install requirements with `pip install -r requirements.txt` in a Python 3.7 environment

## Running
From the root directory of the repo, you can launch the editor with
Expand Down Expand Up @@ -50,3 +50,5 @@ For more information, read the [Contribution guidelines](CONTRIBUTING.md).
## Known Issues

**Warning or Error about Darwin on OS X:** Try downgrading PyArrow to 3.0.0.

**ConnectionRefusedError: [Errno 61] Connection refused:** Happens occasionally. Try restarting the app.
10 changes: 5 additions & 5 deletions promptsource/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def get_infos(d_name):
continue
example = dataset[ex_idx]
example = removeHyphen(example)
col1, _, col2 = st.columns([12, 1, 12])
col1, _, col2 = st.beta_columns([12, 1, 12])
with col1:
st.write(example)
if num_templates > 0:
Expand All @@ -392,7 +392,7 @@ def get_infos(d_name):
#
# Create a new template or select an existing one
#
col1a, col1b, _, col2 = st.columns([9, 9, 1, 6])
col1a, col1b, _, col2 = st.beta_columns([9, 9, 1, 6])

# current_templates_key and state.templates_key are keys for the templates object
current_templates_key = (dataset_key, conf_option.name if conf_option else None)
Expand Down Expand Up @@ -426,7 +426,7 @@ def get_infos(d_name):
else:
state.new_template_name = None

with col1b, st.expander("or Select Template", expanded=True):
with col1b, st.beta_expander("or Select Template", expanded=True):
dataset_templates = template_collection.get_dataset(*state.templates_key)
template_list = dataset_templates.all_template_names
if state.template_name:
Expand All @@ -450,15 +450,15 @@ def get_infos(d_name):
\n- **Implicit situation or contextualization**: how explicit is the query? For instance, *Given this review, would you buy this product?* is an indirect way to ask whether the review is positive.
"""

col1, _, _ = st.columns([18, 1, 6])
col1, _, _ = st.beta_columns([18, 1, 6])
with col1:
if state.template_name is not None:
show_text(variety_guideline)

#
# Edit the created or selected template
#
col1, _, col2 = st.columns([18, 1, 6])
col1, _, col2 = st.beta_columns([18, 1, 6])
with col1:
if state.template_name is not None:
template = dataset_templates[state.template_name]
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ flake8
isort==5.8.0
pytest
pyyaml>=5
streamlit>=0.86.0, <=0.88.0
streamlit==0.82
jinja2
plotly
requests
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
url='https://github.com/bigscience-workshop/promptsource.git',
author='Multiple Authors',
author_email='xxx',
python_requires='>=3.7',
python_requires='>=3.7, <3.8',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
Expand Down