Spaces:
Build error
Build error
consciousAI
commited on
Commit
•
91224d2
1
Parent(s):
acfc725
Update app.py
Browse files
app.py
CHANGED
@@ -76,7 +76,7 @@ def predict(query, context):
|
|
76 |
cust_answer_sentence_2 = "Failed matching sentence (answer may be split in multiple sentences)"
|
77 |
cust_answer_span_2 = re.search(cust_answer_2, contextDefault).span()
|
78 |
|
79 |
-
return cust_answer, cust_answer_sentence, cust_answer_span, cust_confidence, cust_answer_2, cust_answer_sentence_2, cust_answer_span_2,
|
80 |
|
81 |
with gr.Blocks() as demo:
|
82 |
gr.Markdown(value="# Question Answering Encoders vs Generative\n [Question Answering Leveraging Encoders V1](https://huggingface.co/anshoomehra/question-answering-roberta-base-s)\n\n[Question Answering Leveraging Encoders V2](https://huggingface.co/anshoomehra/question-answering-roberta-base-s-v2)\n\n[Generative Question Answering](https://huggingface.co/anshoomehra/question-answering-generative-t5-v1-base-s-q-c)")
|
|
|
76 |
cust_answer_sentence_2 = "Failed matching sentence (answer may be split in multiple sentences)"
|
77 |
cust_answer_span_2 = re.search(cust_answer_2, contextDefault).span()
|
78 |
|
79 |
+
return cust_answer, cust_answer_sentence, cust_answer_span, cust_confidence, cust_answer_2, cust_answer_sentence_2, cust_answer_span_2, cust_answer_sentence_3, cust_answer_3, cust_answer_span_3, cust_confidence_3
|
80 |
|
81 |
with gr.Blocks() as demo:
|
82 |
gr.Markdown(value="# Question Answering Encoders vs Generative\n [Question Answering Leveraging Encoders V1](https://huggingface.co/anshoomehra/question-answering-roberta-base-s)\n\n[Question Answering Leveraging Encoders V2](https://huggingface.co/anshoomehra/question-answering-roberta-base-s-v2)\n\n[Generative Question Answering](https://huggingface.co/anshoomehra/question-answering-generative-t5-v1-base-s-q-c)")
|