Spaces:
Runtime error
Runtime error
File size: 494 Bytes
48d28d5 9e0ab0f 48d28d5 10520fd 9e0ab0f 10520fd d85a37a 10520fd d85a37a dc2b889 d85a37a 41c8dfe dc2b889 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import gradio as gr
import sentence_transformers
from sentence_transformers import SentenceTransformer
import pandas as pd
model = SentenceTransformer('JoBeer/all-mpnet-base-v2-eclass')
corpus = pd.read_excel('corpus.xlsx')
def predict(i):
name = corpus[i][5]
return name
interface = gr.Interface(fn = predict, inputs = gr.Textbox(label="did:", placeholder="z.B. query", lines=1),
outputs = 'text',
title = 'ECLASS-Property-Search')
interface.launch() |