Spaces:
Sleeping
Sleeping
Update app.py
Browse files![1678994518587.png](https://s3.amazonaws.com/moonup/production/uploads/63c40293c7d7f4c63a52e27e/cicnfH_n4QYad6_4bH4On.png)
app.py
CHANGED
@@ -62,10 +62,13 @@ def classify(vid):
|
|
62 |
probs = torch.sigmoid(logits)[0]
|
63 |
return full_text, sum, dict(zip(classes,map(float,probs)))
|
64 |
|
|
|
|
|
|
|
65 |
|
66 |
iface = gr.Interface(fn=classify,
|
67 |
-
inputs=gr.inputs.Audio(source="upload", type="filepath"
|
68 |
-
outputs = [
|
69 |
iface.launch(inline=False)
|
70 |
|
71 |
|
|
|
62 |
probs = torch.sigmoid(logits)[0]
|
63 |
return full_text, sum, dict(zip(classes,map(float,probs)))
|
64 |
|
65 |
+
text1 = gr.Textbox(label="Text")
|
66 |
+
text2 = gr.Textbox(label="Summary")
|
67 |
+
|
68 |
|
69 |
iface = gr.Interface(fn=classify,
|
70 |
+
inputs=gr.inputs.Audio(source="upload", type="filepath"),
|
71 |
+
outputs = [text1,text2,gr.outputs.Label(num_top_classes=3)])
|
72 |
iface.launch(inline=False)
|
73 |
|
74 |
|