Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
-
import PyTorch, TensorFlow
|
4 |
|
5 |
from Gradio_UI import GradioUI
|
6 |
|
@@ -26,6 +25,8 @@ def generate_relations(text):
|
|
26 |
demo = gr.Interface(
|
27 |
fn=generate_relations,
|
28 |
inputs=gr.Textbox(lines=10, label="Clinical Note or Drug Review Text"),
|
|
|
|
|
29 |
outputs=gr.Textbox(label="Extracted Causal Relations"),
|
30 |
title="Causal Relation Extractor with MedLlama",
|
31 |
description="Paste your clinical note or drug review. This AI agent extracts drug-condition or symptom causal relations using a fine-tuned LLM.",
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
|
|
3 |
|
4 |
from Gradio_UI import GradioUI
|
5 |
|
|
|
25 |
demo = gr.Interface(
|
26 |
fn=generate_relations,
|
27 |
inputs=gr.Textbox(lines=10, label="Clinical Note or Drug Review Text"),
|
28 |
+
inputs=gr.Textbox(lines=1, label="Entity 1"),
|
29 |
+
inputs=gr.Textbox(lines=1, label="Entity 2"),
|
30 |
outputs=gr.Textbox(label="Extracted Causal Relations"),
|
31 |
title="Causal Relation Extractor with MedLlama",
|
32 |
description="Paste your clinical note or drug review. This AI agent extracts drug-condition or symptom causal relations using a fine-tuned LLM.",
|