Peijie commited on
Commit
f6a672c
1 Parent(s): 395d6df

test deployment

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import io
2
  import os
3
- # os.system("pip uninstall -y gradio")
4
- # os.system("pip install gradio==3.41.0")
5
 
6
  import torch
7
  import json
@@ -429,5 +429,5 @@ with gr.Blocks(theme=gr.themes.Soft(), css=custom_css, title="PEEB") as demo:
429
  xclip_edit_button.click(on_edit_button_click_xclip, inputs=[], outputs=[xclip_textbox, custom_explanation])
430
  xclip_predict_button.click(on_predict_button_click_xclip, inputs=[xclip_textbox], outputs=[xclip_textbox, xclip_pred_label, xclip_explanation, custom_pred_label, custom_explanation])
431
 
432
- demo.launch(server_port=5000, share=True)
433
- # demo.launch()
 
1
  import io
2
  import os
3
+ os.system("pip uninstall -y gradio")
4
+ os.system("pip install gradio==3.41.0")
5
 
6
  import torch
7
  import json
 
429
  xclip_edit_button.click(on_edit_button_click_xclip, inputs=[], outputs=[xclip_textbox, custom_explanation])
430
  xclip_predict_button.click(on_predict_button_click_xclip, inputs=[xclip_textbox], outputs=[xclip_textbox, xclip_pred_label, xclip_explanation, custom_pred_label, custom_explanation])
431
 
432
+ # demo.launch(server_port=5000, share=True)
433
+ demo.launch()