muhtasham commited on
Commit
b3b212c
1 Parent(s): 767fd56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -40,14 +40,14 @@ def speech_to_text(mic=None, file=None):
40
 
41
  def zero_shot(image, text_input):
42
  results = zero(image, text_input)
43
- return {dic["label"]: dic["score"] for dic in results}
44
 
45
  with gr.Blocks() as demo:
46
  gr.Markdown( """
47
- ## Input voice/text
48
- ## Convert voice/text to image via dalle
49
- ## Given list of labels and a selected image from gallery do zero-shot classification
50
- ## Coming soon: TTS(audio) your output label as: Your output looks like "label of zero-shot"
51
  """)
52
  with gr.Row():
53
  with gr.Column():
 
40
 
41
  def zero_shot(image, text_input):
42
  results = zero(image, text_input)
43
+ return results
44
 
45
  with gr.Blocks() as demo:
46
  gr.Markdown( """
47
+ Input voice/text
48
+ Convert voice/text to image via Latent Diffusion
49
+ Given list of labels and a selected image from gallery do zero-shot classification
50
+ Coming soon: TTS(audio) your output label as: Your output looks like "label of zero-shot"
51
  """)
52
  with gr.Row():
53
  with gr.Column():