Spaces:
Sleeping
Sleeping
paavansundar
commited on
Commit
•
4710379
1
Parent(s):
0afc866
Create Medical_QNA_GPT2_UI.py
Browse files- Medical_QNA_GPT2_UI.py +12 -0
Medical_QNA_GPT2_UI.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio
|
2 |
+
# Input from user
|
3 |
+
in_transcript = gradio.inputs.Textbox(lines=10, placeholder=None, default="transcription", label='Enter Transcription Text')
|
4 |
+
|
5 |
+
# Output prediction
|
6 |
+
out_keywords = gradio.outputs.Textbox(type="text", label='Extracted Keywords')
|
7 |
+
|
8 |
+
iface = gradio.Interface(fn = extract_keywords,
|
9 |
+
inputs = [in_transcript],
|
10 |
+
outputs = [out_keywords])
|
11 |
+
|
12 |
+
iface.launch(share = True)
|