udyan2 commited on
Commit
67ebcb0
1 Parent(s): bf6680f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -4
app.py CHANGED
@@ -1,7 +1,14 @@
1
  import gradio as gr
 
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
 
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch()
 
 
 
 
 
 
1
  import gradio as gr
2
+ import run_inference
3
 
4
+ def prediction(patient_record):
5
+ patient_record = str(patient_record)
6
+ run_inference.main)()
7
 
8
+
9
+ demo = gr.Interface(
10
+ fn=prediction,
11
+ inputs=gr.Textbox(lines=2, placeholder="Enter the patient record here "),
12
+ outputs="text",
13
+ )
14
+ demo.launch()