Rimi98 commited on
Commit
9e391aa
1 Parent(s): 90d99db

Update app.py

Browse files

![1678994518587.png](https://s3.amazonaws.com/moonup/production/uploads/63c40293c7d7f4c63a52e27e/cicnfH_n4QYad6_4bH4On.png)

Files changed (1) hide show
  1. app.py +5 -2
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",label="Model Card"),
68
- outputs = ['text','text',gr.outputs.Label(num_top_classes=3)])
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