victorisgeek commited on
Commit
54fb304
·
verified ·
1 Parent(s): 850d3cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -81,4 +81,9 @@ init_thread = threading.Thread(target=initialize_refacer)
81
  init_thread.start()
82
 
83
  # Launch demo
84
- demo.queue().launch(show_error=True, share=True, server_name="0.0.0.0", server_port=7860)
 
 
 
 
 
 
81
  init_thread.start()
82
 
83
  # Launch demo
84
+ demo = gr.Interface(fn=predict, inputs=gr.inputs.Textbox(label='CANDIDATE input'), \
85
+ outputs=[gr.outputs.Textbox(label='VACANCIES'),\
86
+ gr.Plot()],\
87
+ css='div {margin-left: auto; margin-right: auto; width: 100%;\
88
+ background-image: url("https://ibb.co/37wzh0r"); repeat 0 0;}')\
89
+ .launch(share=False).launch(show_error=True, share=True, server_name="0.0.0.0", server_port=7860)