besarismaili commited on
Commit
998b8a0
·
1 Parent(s): 50dd67e
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -1,8 +1,10 @@
1
  #@title Connect to the Stability API
2
  import os
 
3
  from stability_sdk.api import Context
4
  from stability_sdk.animation_ui import create_ui
5
 
 
6
  # @markdown To get your API key visit https://dreamstudio.ai/account
7
  STABILITY_HOST = "grpc.stability.ai:443" #@param {type:"string"}
8
  STABILITY_KEY = os.getenv("STABILITY_KEY")
@@ -19,9 +21,6 @@ show_ui_in_notebook = True #@param {type:"boolean"}
19
 
20
  outputs_path = r'C:\Work\tst\SAnim'
21
 
22
- <<<<<<< HEAD
23
-
24
-
25
  # Create UI
26
  interface = create_ui(context, outputs_path)
27
 
@@ -30,10 +29,8 @@ interface = gr.Interface(fn=interface.fn, inputs=interface.inputs, outputs=inter
30
 
31
  # Launch the UI
32
  interface.launch(show_api=False, debug=True, inline=show_ui_in_notebook, height=768, share=True, show_error=True)
33
- =======
34
  # Create UI
35
  ui = create_ui(context, outputs_path)
36
 
37
  # Launch the UI with the concurrency_limit parameter
38
  ui.launch(concurrency_limit=2, show_api=False, debug=True, inline=show_ui_in_notebook, height=768, share=True, show_error=True)
39
- >>>>>>> fe2bf46c1caf5c1a7c4f0559156cfc0da2dfa846
 
1
  #@title Connect to the Stability API
2
  import os
3
+ import gradio as gr
4
  from stability_sdk.api import Context
5
  from stability_sdk.animation_ui import create_ui
6
 
7
+
8
  # @markdown To get your API key visit https://dreamstudio.ai/account
9
  STABILITY_HOST = "grpc.stability.ai:443" #@param {type:"string"}
10
  STABILITY_KEY = os.getenv("STABILITY_KEY")
 
21
 
22
  outputs_path = r'C:\Work\tst\SAnim'
23
 
 
 
 
24
  # Create UI
25
  interface = create_ui(context, outputs_path)
26
 
 
29
 
30
  # Launch the UI
31
  interface.launch(show_api=False, debug=True, inline=show_ui_in_notebook, height=768, share=True, show_error=True)
 
32
  # Create UI
33
  ui = create_ui(context, outputs_path)
34
 
35
  # Launch the UI with the concurrency_limit parameter
36
  ui.launch(concurrency_limit=2, show_api=False, debug=True, inline=show_ui_in_notebook, height=768, share=True, show_error=True)