besarismaili commited on
Commit
2bce580
·
1 Parent(s): 3206b97

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -20,11 +20,12 @@ def connect_to_stability_api(api_key):
20
  ui.queue(concurrency_count=2, max_size=2)
21
  ui.launch(show_api=False, debug=True, inline=True, height=768, share=True, show_error=True)
22
 
23
- def wrapper_func():
24
  api_key = os.getenv('STABILITY_KEY')
25
  if not api_key:
26
  api_key = getpass.getpass('Enter your API Key')
27
  connect_to_stability_api(api_key)
 
28
 
29
- iface = gr.Interface(fn=wrapper_func, inputs=[], outputs=[])
30
  iface.launch()
 
20
  ui.queue(concurrency_count=2, max_size=2)
21
  ui.launch(show_api=False, debug=True, inline=True, height=768, share=True, show_error=True)
22
 
23
+ def wrapper_func(dummy_input):
24
  api_key = os.getenv('STABILITY_KEY')
25
  if not api_key:
26
  api_key = getpass.getpass('Enter your API Key')
27
  connect_to_stability_api(api_key)
28
+ return "Done"
29
 
30
+ iface = gr.Interface(fn=wrapper_func, inputs='text', outputs='text')
31
  iface.launch()