Spaces:
Sleeping
Sleeping
Update app.py
Browse files500 charcter into one question gerate
app.py
CHANGED
|
@@ -68,7 +68,7 @@ def generate_qa(token):
|
|
| 68 |
if not questions:
|
| 69 |
continue
|
| 70 |
|
| 71 |
-
for question in questions[:
|
| 72 |
prompt = f"Context: {chunk}\n\nQuestion: {question}\n\nAnswer:"
|
| 73 |
try:
|
| 74 |
result = qa_model(prompt, max_length=256, do_sample=False)
|
|
|
|
| 68 |
if not questions:
|
| 69 |
continue
|
| 70 |
|
| 71 |
+
for question in questions[:1]:
|
| 72 |
prompt = f"Context: {chunk}\n\nQuestion: {question}\n\nAnswer:"
|
| 73 |
try:
|
| 74 |
result = qa_model(prompt, max_length=256, do_sample=False)
|