asigalov61 commited on
Commit
0f9e0ec
·
1 Parent(s): f67f510

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -147,15 +147,14 @@ class JSMsgReceiver(gr.HTML):
147
  if __name__ == "__main__":
148
 
149
  parser = argparse.ArgumentParser()
150
- parser.add_argument("--share", action="store_true", default=False, help="share gradio app")
151
  parser.add_argument("--port", type=int, default=7860, help="gradio server port")
152
- parser.add_argument("--max-gen", type=int, default=1024, help="max")
153
  opt = parser.parse_args()
154
 
155
 
156
  providers = ['CPUExecutionProvider']
157
 
158
- # session = rt.InferenceSession('Allegro_Music_Transformer_Small_Trained_Model_56000_steps_0.9399_loss_0.7374_acc.onnx', providers=providers)
159
 
160
  app = gr.Blocks()
161
  with app:
 
147
  if __name__ == "__main__":
148
 
149
  parser = argparse.ArgumentParser()
150
+ parser.add_argument("--share", action="store_true", default=True, help="share gradio app")
151
  parser.add_argument("--port", type=int, default=7860, help="gradio server port")
 
152
  opt = parser.parse_args()
153
 
154
 
155
  providers = ['CPUExecutionProvider']
156
 
157
+ session = rt.InferenceSession('Allegro_Music_Transformer_Small_Trained_Model_56000_steps_0.9399_loss_0.7374_acc.onnx', providers=providers)
158
 
159
  app = gr.Blocks()
160
  with app: