fbadine commited on
Commit
cdbdec5
1 Parent(s): 4595449

Added credits to authors in app.py in order to be displayed

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -164,6 +164,7 @@ if __name__ == "__main__":
164
  clr_btn = gr.Button(value="Clear", variant="secondary")
165
  prd_btn = gr.Button(value="Predict")
166
 
 
167
  with gr.Column():
168
  lbl_output = gr.Label(label="Top Predictions")
169
  with gr.Group():
@@ -172,6 +173,17 @@ if __name__ == "__main__":
172
  label="Prediction per time slot", show_label=False
173
  )
174
 
 
 
 
 
 
 
 
 
 
 
 
175
  clr_btn.click(
176
  fn=clear_inputs_and_outputs,
177
  inputs=[],
 
164
  clr_btn = gr.Button(value="Clear", variant="secondary")
165
  prd_btn = gr.Button(value="Predict")
166
 
167
+ # Outputs
168
  with gr.Column():
169
  lbl_output = gr.Label(label="Top Predictions")
170
  with gr.Group():
 
173
  label="Prediction per time slot", show_label=False
174
  )
175
 
176
+ # Credits
177
+ with gr.Row():
178
+ gr.Markdown(
179
+ """
180
+ <h4>Credits</h4>
181
+ Author: <a href="https://twitter.com/fadibadine"> Fadi Badine</a>.<br>
182
+ Based on the following Keras example <a href="https://keras.io/examples/audio/uk_ireland_accent_recognition"> English speaker accent recognition using Transfer Learning</a> by Fadi Badine<br>
183
+ Check out the model <a href="https://huggingface.co/keras-io/english-speaker-accent-recognition-using-transfer-learning">here</a>
184
+ """
185
+ )
186
+
187
  clr_btn.click(
188
  fn=clear_inputs_and_outputs,
189
  inputs=[],