Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ def predict(input_text):
|
|
5 |
truncated_input = input_text[:512]
|
6 |
|
7 |
# Load the interface and make a prediction
|
8 |
-
iface = gr.
|
9 |
-
prediction = iface
|
10 |
|
11 |
return prediction
|
12 |
|
|
|
5 |
truncated_input = input_text[:512]
|
6 |
|
7 |
# Load the interface and make a prediction
|
8 |
+
iface = gr.load("models/DATEXIS/CORe-clinical-diagnosis-prediction")
|
9 |
+
prediction = iface(truncated_input)
|
10 |
|
11 |
return prediction
|
12 |
|