Spaces:
Build error
Build error
Update app.py
Browse files
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")
|