Bronco92 commited on
Commit
58b05af
1 Parent(s): 245c501

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.Interface.load("models/DATEXIS/CORe-clinical-diagnosis-prediction")
9
- prediction = iface.predict([truncated_input])
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