Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,9 @@ def predict(name, description):
|
|
27 |
IRDI2 = corpus.iloc[output[0][1].get('corpus_id'),4]
|
28 |
score2 = output[0][1].get('score')
|
29 |
|
30 |
-
|
|
|
|
|
31 |
|
32 |
interface = gr.Interface(fn = predict,
|
33 |
inputs = [gr.Textbox(label="Name:", placeholder="z.B. GTIN", lines=1), gr.Textbox(label="Description:", placeholder="z.B. Globel Trade Item Number", lines=1)],
|
|
|
27 |
IRDI2 = corpus.iloc[output[0][1].get('corpus_id'),4]
|
28 |
score2 = output[0][1].get('score')
|
29 |
|
30 |
+
df = [[preferedName1, definition1, IRDI1, score1], [preferedName2, definition2, IRDI1, score2]]
|
31 |
+
|
32 |
+
return pd.Dataframe(df)
|
33 |
|
34 |
interface = gr.Interface(fn = predict,
|
35 |
inputs = [gr.Textbox(label="Name:", placeholder="z.B. GTIN", lines=1), gr.Textbox(label="Description:", placeholder="z.B. Globel Trade Item Number", lines=1)],
|