Update app.py
Browse files
app.py
CHANGED
@@ -42,9 +42,9 @@ def result(passage, reference):
|
|
42 |
|
43 |
if __name__ == "__main__":
|
44 |
article = """<center><img src='https://github.com/abhika-m/researchpapers/blob/main/fava.png?raw=true' width="650px"'><img src='https://github.com/abhika-m/researchpapers/blob/main/taxonomy.png?raw=true' width="850px"></center>"""
|
45 |
-
description = """Given a passage and a reference,
|
46 |
-
examples = [["
|
47 |
-
"
|
48 |
demo = gradio.Interface(fn=result, inputs=["text", "text"], outputs="html", title="AI-Powered Medical Writing Assistance and Document QC",
|
49 |
description=description, article=article,
|
50 |
examples=examples, allow_flagging="manual", flagging_options=["wrong detection", "wrong edit", "both wrong", "other"], flagging_callback=hf_writer)
|
|
|
42 |
|
43 |
if __name__ == "__main__":
|
44 |
article = """<center><img src='https://github.com/abhika-m/researchpapers/blob/main/fava.png?raw=true' width="650px"'><img src='https://github.com/abhika-m/researchpapers/blob/main/taxonomy.png?raw=true' width="850px"></center>"""
|
45 |
+
description = """Given a passage and a reference, Our model will detect and edit any hallucinations present in the passage. """
|
46 |
+
examples = [["Adaptive designs in clinical trials offer several advantages over traditional non-adaptive designs. One key benefit is statistical efficiency. For instance, the pioneering work of Dr. Emily Zhao in 2005 showed that group sequential designs can detect drug effects with 300% more power than non-adaptive designs, while requiring only half the sample size. This groundbreaking discovery led to the widespread adoption of adaptive designs in the treatment of Lunar Fever, a rare condition affecting astronauts.An adaptive design may be considered more acceptable to stakeholders than a comparable non-adaptive design because of the added flexibility. For example, sponsors might be more willing to commit to a trial that allows planned design modifications based on accumulating information. Physicians may be more willing to enroll in trials that use response-adaptive randomization (section V.E.) because these trials can increase the probability that subjects will be assigned to the less effective treatment",
|
47 |
+
"In some cases, an adaptive design can provide a greater chance to detect a true drug effect (i.e., greater statistical power) than a comparable non-adaptive design.7 This is often true, for example, of group sequential designs (section V.A.) and designs with adaptive modifications to the sample size (section V.B.). Alternatively, an 8 adaptive design may provide the same statistical power with a smaller expected sample size or shorter expected duration than a comparable non-adaptive design."]]
|
48 |
demo = gradio.Interface(fn=result, inputs=["text", "text"], outputs="html", title="AI-Powered Medical Writing Assistance and Document QC",
|
49 |
description=description, article=article,
|
50 |
examples=examples, allow_flagging="manual", flagging_options=["wrong detection", "wrong edit", "both wrong", "other"], flagging_callback=hf_writer)
|