singularitys0 commited on
Commit
fbbbcab
Β·
1 Parent(s): 4c4b1d9

fix gradio

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. utils/interface.py +1 -1
app.py CHANGED
@@ -38,7 +38,7 @@ def main():
38
  interface = MIMOInterface(args.model_path)
39
  demo = interface.create_interface()
40
 
41
- demo.launch(allowed_paths=['./assets'])
42
 
43
 
44
  if __name__ == "__main__":
 
38
  interface = MIMOInterface(args.model_path)
39
  demo = interface.create_interface()
40
 
41
+ demo.launch()
42
 
43
 
44
  if __name__ == "__main__":
utils/interface.py CHANGED
@@ -371,7 +371,7 @@ class MIMOInterface:
371
  max_new_tokens = gr.Slider(1, 2000, value=500, step=1, label="πŸ“ Max New Tokens", info="Upper bound")
372
  min_new_tokens = gr.Slider(0, 100, value=0, step=1, label="πŸ“ Min New Tokens", info="Lower bound")
373
 
374
- decoder_audio_prompt = gr.Audio(type="numpy", value="./assets/prompt_cn.wav", label="πŸŽ™οΈ Decoder Audio Prompt (Optional)", visible=True)
375
 
376
  with gr.Row():
377
  with gr.Column(scale=1, elem_classes="input-section"):
 
371
  max_new_tokens = gr.Slider(1, 2000, value=500, step=1, label="πŸ“ Max New Tokens", info="Upper bound")
372
  min_new_tokens = gr.Slider(0, 100, value=0, step=1, label="πŸ“ Min New Tokens", info="Lower bound")
373
 
374
+ decoder_audio_prompt = gr.Audio(type="numpy", label="πŸŽ™οΈ Decoder Audio Prompt (Optional)", visible=True)
375
 
376
  with gr.Row():
377
  with gr.Column(scale=1, elem_classes="input-section"):