awacke1 commited on
Commit
b886a66
β€’
1 Parent(s): 9d8750a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ import gradio as gr
8
 
9
  def classify_text(text1, text2):
10
  # Load pre-trained model
11
- model = gr.load_model("models/sileod/deberta-v3-base-tasksource-nli")
12
 
13
  # Perform classification on input text
14
  output = model.predict([text1, text2])[0]
 
8
 
9
  def classify_text(text1, text2):
10
  # Load pre-trained model
11
+ model = gr.Interface.load("models/sileod/deberta-v3-base-tasksource-nli")
12
 
13
  # Perform classification on input text
14
  output = model.predict([text1, text2])[0]