Bofandra commited on
Commit
471985d
1 Parent(s): ffbadc4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -1,6 +1,11 @@
1
  import gradio as gr
 
2
 
3
  def greet(name):
 
 
 
 
4
  return "Hello " + name + "!"
5
 
6
  demo = gr.Interface(fn=greet, inputs="textbox", outputs="textbox")
 
1
  import gradio as gr
2
+ import pickle
3
 
4
  def greet(name):
5
+ # transform query from user
6
+ file = open('ms-marco-TinyBERT-L-2.sav','rb')
7
+ model = pickle.load(file)
8
+ file.close()
9
  return "Hello " + name + "!"
10
 
11
  demo = gr.Interface(fn=greet, inputs="textbox", outputs="textbox")