Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,11 +9,11 @@ model = SentenceTransformer('JoBeer/all-mpnet-base-v2-eclass')
|
|
9 |
corpus = pd.read_excel('corpus.xlsx')
|
10 |
|
11 |
def predict(i):
|
12 |
-
name = corpus[
|
13 |
return name
|
14 |
|
15 |
-
interface = gr.Interface(fn = predict, inputs = gr.Textbox(label="did:", placeholder="z.B.
|
16 |
outputs = 'text',
|
17 |
-
title = 'ECLASS-
|
18 |
|
19 |
interface.launch()
|
|
|
9 |
corpus = pd.read_excel('corpus.xlsx')
|
10 |
|
11 |
def predict(i):
|
12 |
+
name = corpus[i][5]
|
13 |
return name
|
14 |
|
15 |
+
interface = gr.Interface(fn = predict, inputs = gr.Textbox(label="did:", placeholder="z.B. query", lines=1),
|
16 |
outputs = 'text',
|
17 |
+
title = 'ECLASS-Property-Search')
|
18 |
|
19 |
interface.launch()
|