ibvhim commited on
Commit
f1e9e90
·
1 Parent(s): 52d48fe

Update Voicechat-Hindi/app.py

Browse files
Files changed (1) hide show
  1. Voicechat-Hindi/app.py +5 -2
Voicechat-Hindi/app.py CHANGED
@@ -34,7 +34,7 @@ def main(audio: object) -> Tuple[str, str, str, object]:
34
  return user_speech_text, bot_response_hi, bot_response_en, html
35
 
36
 
37
- Interface(
38
  fn=main,
39
  inputs=[
40
  Audio(
@@ -50,4 +50,7 @@ Interface(
50
  ],
51
  live=True,
52
  allow_flagging="never",
53
- ).launch(debug=True)
 
 
 
 
34
  return user_speech_text, bot_response_hi, bot_response_en, html
35
 
36
 
37
+ interface = Interface(
38
  fn=main,
39
  inputs=[
40
  Audio(
 
50
  ],
51
  live=True,
52
  allow_flagging="never",
53
+ )
54
+
55
+ if __name__ == '__main__':
56
+ interface.launch(debug=True)