Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,6 +36,15 @@ def zero_shot(doc, candidates):
|
|
| 36 |
input1 = gr.Textbox(label="Text")
|
| 37 |
#input object 2
|
| 38 |
input2 = gr.Textbox(label="Labels")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
#output object
|
| 40 |
output = gr.Label(label="Output")
|
| 41 |
#example object
|
|
@@ -48,7 +57,7 @@ examples = [
|
|
| 48 |
gui = gr.Interface(title=title,
|
| 49 |
description=description,
|
| 50 |
fn=zero_shot,
|
| 51 |
-
inputs=[input1, input2]
|
| 52 |
outputs=[output],
|
| 53 |
examples=examples)
|
| 54 |
|
|
|
|
| 36 |
input1 = gr.Textbox(label="Text")
|
| 37 |
#input object 2
|
| 38 |
input2 = gr.Textbox(label="Labels")
|
| 39 |
+
|
| 40 |
+
#input 3 microphone
|
| 41 |
+
audio = gr.Audio(
|
| 42 |
+
label="Input Audio",
|
| 43 |
+
show_label=False,
|
| 44 |
+
source="microphone",
|
| 45 |
+
type="filepath"
|
| 46 |
+
)
|
| 47 |
+
|
| 48 |
#output object
|
| 49 |
output = gr.Label(label="Output")
|
| 50 |
#example object
|
|
|
|
| 57 |
gui = gr.Interface(title=title,
|
| 58 |
description=description,
|
| 59 |
fn=zero_shot,
|
| 60 |
+
inputs=[input1, input2]
|
| 61 |
outputs=[output],
|
| 62 |
examples=examples)
|
| 63 |
|