Yaron Koresh commited on
Commit
21055ee
·
verified ·
1 Parent(s): 8034324

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -191,7 +191,10 @@ function custom(){
191
  }
192
  """
193
 
194
- with gr.Blocks(theme=gr.themes.Soft(),css=css,js=js) as demo:
 
 
 
195
  result = []
196
  with gr.Column(elem_id="col-container"):
197
  gr.Markdown(f"""
@@ -244,4 +247,4 @@ with gr.Blocks(theme=gr.themes.Soft(),css=css,js=js) as demo:
244
 
245
  run_button.click(fn=_rets,inputs=[prompt,prompt2],outputs=result)
246
 
247
- demo.queue().launch(server_port="7680-10000")
 
191
  }
192
  """
193
 
194
+ def porting(x):
195
+ return x + 1
196
+
197
+ with gr.Blocks(theme=gr.themes.Soft(),css=css,js=js,fn=porting,port=8888) as demo:
198
  result = []
199
  with gr.Column(elem_id="col-container"):
200
  gr.Markdown(f"""
 
247
 
248
  run_button.click(fn=_rets,inputs=[prompt,prompt2],outputs=result)
249
 
250
+ demo.queue().launch(server_port=7680)