Spaces:
Sleeping
Sleeping
paavansundar
commited on
Commit
•
6d0e485
1
Parent(s):
62cab37
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,14 @@
|
|
1 |
import gradio
|
2 |
# Input from user
|
3 |
-
|
4 |
-
|
|
|
|
|
5 |
# Output prediction
|
6 |
-
|
7 |
|
8 |
-
iface = gradio.Interface(fn =
|
9 |
-
inputs = [
|
10 |
-
outputs = [
|
11 |
|
12 |
iface.launch(share = True)
|
|
|
1 |
import gradio
|
2 |
# Input from user
|
3 |
+
in_question = gradio.inputs.Textbox(lines=10, placeholder=None, default="question", label='Enter Question Text')
|
4 |
+
def Medical_QNA_GPT2(question):
|
5 |
+
return "<Answer>Test"
|
6 |
+
|
7 |
# Output prediction
|
8 |
+
out_answer = gradio.outputs.Textbox(type="text", label='Answer')
|
9 |
|
10 |
+
iface = gradio.Interface(fn = Medical_QNA_GPT2,
|
11 |
+
inputs = [in_question],
|
12 |
+
outputs = [out_answer])
|
13 |
|
14 |
iface.launch(share = True)
|