Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,24 +10,15 @@ pipelines = {model: QANomEndToEndPipeline(model) for model in models}
|
|
10 |
|
11 |
description = f"""This is a demo of the full QANom Pipeline - identifying deverbal nominalizations and parsing them with question-answer driven semantic role labeling (QASRL) """
|
12 |
title="QANom End-to-End Pipeline Demo"
|
|
|
13 |
examples = [[models[1], "Physics is low and everything else was a recommendation. Ive met a lot of people that can break the law,
|
14 |
-
but I have never met anyone who could break physics.
|
15 |
-
",
|
16 |
-
|
17 |
-
to the most fundamental principles, the things that we are most confident are true
|
18 |
-
at a foundational level, and that sets your axiomatic base, and then you reason up from there.
|
19 |
-
And then you cross check your conclusion against the axiomatic truth.
|
20 |
Some basics in physics would be like are violating conservation of energy or momentum or something like that, then it's not gonna work.", 0.75],
|
21 |
-
[models[0], "So first for any kind of technology problem you have to sort of just make sure you're not violating physics.
|
22 |
-
|
23 |
-
anything really.", 0.75],
|
24 |
-
[models[1], "or technology, whatever it might be, and say, "What is this? What is the perfect arrangement of atoms
|
25 |
-
that would be the best possible product? And now let us try to figure out how to get the atoms in that shape."
|
26 |
-
- I mean, it sounds, it's almost like Rick and Morty absurd
|
27 |
-
until you start to really think about it. And you really should think about it in this way cause everything else is kind of, if you think you might fall victim to the momentum
|
28 |
-
of the way things are done in the past, unless you think in this way. - Well, just as a function of inertia, people will want to use the same tools and methods", 0.5]]
|
29 |
|
30 |
-
|
31 |
input_sent_box_label = "Insert sentence here, or select from the examples below"
|
32 |
links = """<p style='text-align: center'>
|
33 |
<a href='https://www.qasrl.org' target='_blank'>QASRL Website</a> | <a href='https://huggingface.co/kleinay/qanom-seq2seq-model-baseline' target='_blank'>Model Repo at Huggingface Hub</a>
|
|
|
10 |
|
11 |
description = f"""This is a demo of the full QANom Pipeline - identifying deverbal nominalizations and parsing them with question-answer driven semantic role labeling (QASRL) """
|
12 |
title="QANom End-to-End Pipeline Demo"
|
13 |
+
|
14 |
examples = [[models[1], "Physics is low and everything else was a recommendation. Ive met a lot of people that can break the law,
|
15 |
+
but I have never met anyone who could break physics. ", 0.7],
|
16 |
+
[models[1], "Its really just saying, lets boil something down to the most fundamental principles, the things that we are most confident are true
|
17 |
+
at a foundational level, and that sets your axiomatic base, and then you reason up from there. And then you cross check your conclusion against the axiomatic truth.
|
|
|
|
|
|
|
18 |
Some basics in physics would be like are violating conservation of energy or momentum or something like that, then it's not gonna work.", 0.75],
|
19 |
+
[models[0], "So first for any kind of technology problem you have to sort of just make sure you're not violating physics. First principles analysis, I think, is something that can be applied to really any walk of life, anything really.", 0.75],
|
20 |
+
[models[1], "or technology, whatever it might be, and say, "What is this? What is the perfect arrangement of atoms that would be the best possible product? And now let us try to figure out how to get the atoms in that shape. I mean, it sounds, it's almost like Rick and Morty absurd until you start to really think about it. And you really should think about it in this way cause everything else is kind of, if you think you might fall victim to the momentum of the way things are done in the past, unless you think in this way. - Well, just as a function of inertia, people will want to use the same tools and methods", 0.5]]
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
|
|
22 |
input_sent_box_label = "Insert sentence here, or select from the examples below"
|
23 |
links = """<p style='text-align: center'>
|
24 |
<a href='https://www.qasrl.org' target='_blank'>QASRL Website</a> | <a href='https://huggingface.co/kleinay/qanom-seq2seq-model-baseline' target='_blank'>Model Repo at Huggingface Hub</a>
|