Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,11 +4,6 @@ import gradio as gr
|
|
4 |
import shortuuid
|
5 |
from transformers import pipeline
|
6 |
|
7 |
-
#input voice/text
|
8 |
-
#convert text to image via dalle
|
9 |
-
#given list of labels and a selected image from gallery do zero-shot classification
|
10 |
-
#tts your output label as: Your output looks like "label of zero-shot"
|
11 |
-
|
12 |
asr = pipeline("automatic-speech-recognition")
|
13 |
latent = gr.Interface.load("spaces/multimodalart/latentdiffusion")
|
14 |
zero = pipeline("zero-shot-image-classification")
|
@@ -47,7 +42,13 @@ def zero_shot(image, text_input):
|
|
47 |
results = zero(image, text_input)
|
48 |
return {dic["label"]: dic["score"] for dic in results}
|
49 |
|
50 |
-
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
with gr.Row():
|
52 |
with gr.Column():
|
53 |
audio_file =[
|
|
|
4 |
import shortuuid
|
5 |
from transformers import pipeline
|
6 |
|
|
|
|
|
|
|
|
|
|
|
7 |
asr = pipeline("automatic-speech-recognition")
|
8 |
latent = gr.Interface.load("spaces/multimodalart/latentdiffusion")
|
9 |
zero = pipeline("zero-shot-image-classification")
|
|
|
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 text to image via dalle
|
49 |
+
#given list of labels and a selected image from gallery do zero-shot classification
|
50 |
+
#Coming soon: tts your output label as: Your output looks like "label of zero-shot"
|
51 |
+
""")
|
52 |
with gr.Row():
|
53 |
with gr.Column():
|
54 |
audio_file =[
|