Spaces:
Build error
Build error
Commit ·
2379cc5
1
Parent(s): a703125
Update app.py
Browse files
app.py
CHANGED
|
@@ -417,7 +417,7 @@ if uploaded_file and oai_api_key:
|
|
| 417 |
text = load_docs(uploaded_file)
|
| 418 |
# Generate num_eval_questions questions, each from context of 3k chars randomly selected
|
| 419 |
if not uploaded_eval_set:
|
| 420 |
-
eval_set = generate_eval(text, num_eval_questions,
|
| 421 |
else:
|
| 422 |
eval_set = json.loads(uploaded_eval_set.read())
|
| 423 |
# Split text
|
|
|
|
| 417 |
text = load_docs(uploaded_file)
|
| 418 |
# Generate num_eval_questions questions, each from context of 3k chars randomly selected
|
| 419 |
if not uploaded_eval_set:
|
| 420 |
+
eval_set = generate_eval(text, num_eval_questions, 1000)
|
| 421 |
else:
|
| 422 |
eval_set = json.loads(uploaded_eval_set.read())
|
| 423 |
# Split text
|