abidlabs HF staff commited on
Commit
aa0c481
·
1 Parent(s): c52f02e

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -2
index.html CHANGED
@@ -23,8 +23,8 @@ pipe = await pipeline('zero-shot-image-classification')
23
 
24
  async def transcribe(text):
25
  data = await pipe(text)
26
- result = [{item['label']: round(item['score'], 2) for item in data}]
27
- return result
28
 
29
  demo = gr.Interface(transcribe, [gr.Image("Input Image"), gr.Textbox(label="Classes")], gr.Label())
30
  demo.launch()
 
23
 
24
  async def transcribe(text):
25
  data = await pipe(text)
26
+ result = [{item['label']: round(item['score'], 2) for item in data}]
27
+ return result
28
 
29
  demo = gr.Interface(transcribe, [gr.Image("Input Image"), gr.Textbox(label="Classes")], gr.Label())
30
  demo.launch()