Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,14 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
-
def
|
4 |
-
|
|
|
5 |
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
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()
|