Spaces:
Sleeping
Sleeping
...
Browse files
app.py
CHANGED
@@ -317,7 +317,7 @@ if st.button("Generate"):
|
|
317 |
generated_text = "? ".join(re.split(r"\?", generated_text)[:-1]) + "?"
|
318 |
|
319 |
elif task == "Question-Answering" or "Question-Answering:" in sample_text:
|
320 |
-
generated_text = asyncio.run(extract_answer(generated_text)
|
321 |
|
322 |
|
323 |
full_output = st.empty()
|
|
|
317 |
generated_text = "? ".join(re.split(r"\?", generated_text)[:-1]) + "?"
|
318 |
|
319 |
elif task == "Question-Answering" or "Question-Answering:" in sample_text:
|
320 |
+
generated_text = asyncio.run(extract_answer(generated_text))
|
321 |
|
322 |
|
323 |
full_output = st.empty()
|