JoBeer commited on
Commit
97fbe02
·
1 Parent(s): 10520fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -9
app.py CHANGED
@@ -11,14 +11,9 @@ corpus = pd.read_excel('corpus.xlsx')
11
  def predict(i):
12
  name = corpus['did'][i]
13
  return name
14
-
15
- gr.Interface(
16
- predict,
17
- inputs=gr.inputs.Image(label="Upload hot dog candidate", type="filepath"),
18
- outputs=gr.outputs.Label(num_top_classes=2),
19
- title="Hot Dog? Or Not?",
20
- ).launch()
21
 
22
- gr.Interface(fn = predict, inputs = [gr.Textbox(label="Description:", placeholder="z.B. Schaltbefehl Pumpe", lines=1), lines=1)],
23
  title = 'ECLASS-Suche',
24
- outputs = gr.outputs.Label(name)).launch()
 
 
 
11
  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()