antonovmaxim commited on
Commit
60d0ae9
1 Parent(s): 883ac62
Files changed (1) hide show
  1. script.py +8 -6
script.py CHANGED
@@ -1,10 +1,12 @@
1
  import blocking_api
2
- # import extensions.api.streaming_api as streaming_api
3
- # from modules import shared
4
 
5
 
6
  def setup():
7
- blocking_api.start_server(7860, share=True)
8
- # streaming_api.start_server(shared.args.api_streaming_port, share=shared.args.public_api)
9
- while True: pass
10
- setup()
 
 
 
 
1
  import blocking_api
2
+ import gradio as gr
 
3
 
4
 
5
  def setup():
6
+ blocking_api.start_server(8000, share=True)
7
+ setup()
8
+
9
+ with gr.Blocks() as demo:
10
+ gr.Markdown('Api is working')
11
+
12
+ demo.launch()