Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,8 +12,19 @@ def predict(i):
|
|
12 |
name = corpus['did'][i]
|
13 |
return name
|
14 |
|
15 |
-
interface = gr.Interface(fn = predict, inputs = [gr.Textbox(label="Description:", placeholder="z.B. Schaltbefehl Pumpe", lines=1), lines=1)],
|
16 |
-
title = 'ECLASS-Suche',
|
17 |
-
outputs = gr.outputs.Label(name))
|
|
|
|
|
|
|
18 |
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
name = corpus['did'][i]
|
13 |
return name
|
14 |
|
15 |
+
#interface = gr.Interface(fn = predict, inputs = [gr.Textbox(label="Description:", placeholder="z.B. Schaltbefehl Pumpe", lines=1), lines=1)],
|
16 |
+
# title = 'ECLASS-Suche',
|
17 |
+
# outputs = gr.outputs.Label(name))
|
18 |
+
#
|
19 |
+
|
20 |
+
#interface.launch()
|
21 |
|
22 |
+
|
23 |
+
import gradio as gr
|
24 |
+
|
25 |
+
def greet(name):
|
26 |
+
return "Hello " + name + "!"
|
27 |
+
|
28 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
29 |
+
|
30 |
+
demo.launch()
|