JoBeer commited on
Commit
41c8dfe
·
1 Parent(s): 97fbe02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -4
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
- interface.launch()
 
 
 
 
 
 
 
 
 
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()