Spaces:
Runtime error
Runtime error
liujch1998
commited on
Commit
Β·
b7fb5d6
1
Parent(s):
3cd31d8
Debug
Browse files
app.py
CHANGED
@@ -21,7 +21,8 @@ MODE = os.environ['MODE'] # 'debug' or 'prod'
|
|
21 |
MODEL_NAME = 'liujch1998/vera'
|
22 |
DATASET_REPO_URL = "https://huggingface.co/datasets/liujch1998/cd-pi-dataset"
|
23 |
DATA_DIR = 'data'
|
24 |
-
|
|
|
25 |
|
26 |
class Interactive:
|
27 |
def __init__(self):
|
@@ -311,11 +312,11 @@ with gr.Blocks() as demo:
|
|
311 |
|
312 |
β οΈ **Intended Use**: Vera is a research prototype and may make mistakes. Do not use for making critical decisions. It is intended to predict the correctness of commonsense statements, and may be unreliable when taking input out of this scope.
|
313 |
|
314 |
-
β οΈ **Data Collection**:
|
315 |
'''
|
316 |
)
|
317 |
with gr.Row():
|
318 |
-
with gr.Column(scale=
|
319 |
do_save = gr.Checkbox(
|
320 |
value=True,
|
321 |
label="Store data",
|
|
|
21 |
MODEL_NAME = 'liujch1998/vera'
|
22 |
DATASET_REPO_URL = "https://huggingface.co/datasets/liujch1998/cd-pi-dataset"
|
23 |
DATA_DIR = 'data'
|
24 |
+
DATA_FILENAME = 'data.jsonl' if MODE != 'debug' else 'data_debug.jsonl'
|
25 |
+
DATA_PATH = os.path.join(DATA_DIR, DATA_FILENAME)
|
26 |
|
27 |
class Interactive:
|
28 |
def __init__(self):
|
|
|
312 |
|
313 |
β οΈ **Intended Use**: Vera is a research prototype and may make mistakes. Do not use for making critical decisions. It is intended to predict the correctness of commonsense statements, and may be unreliable when taking input out of this scope.
|
314 |
|
315 |
+
β οΈ **Data Collection**: By default, we are collecting the inputs entered in this app to further improve and evaluate the model. Do not share any personal or sensitive information while using the app! You can opt out of this data collection by removing the checkbox below:
|
316 |
'''
|
317 |
)
|
318 |
with gr.Row():
|
319 |
+
with gr.Column(scale=1):
|
320 |
do_save = gr.Checkbox(
|
321 |
value=True,
|
322 |
label="Store data",
|