fffiloni commited on
Commit
64c2ce4
1 Parent(s): aa7631f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -131,7 +131,7 @@ def get_audiogen(prompt):
131
 
132
  def get_tango(prompt):
133
  try:
134
- client = Client("declare-lab/tango")
135
  result = client.predict(
136
  prompt, # str representing string value in 'Prompt' Textbox component
137
  100, # int | float representing numeric value between 100 and 200 in 'Steps' Slider component
@@ -139,7 +139,7 @@ def get_tango(prompt):
139
  api_name="/predict"
140
  )
141
  print(result)
142
- return result[0]
143
  except:
144
  raise gr.Error("Tango space API is not ready, please try again in few minutes ")
145
 
 
131
 
132
  def get_tango(prompt):
133
  try:
134
+ client = Client("fffiloni/tango")
135
  result = client.predict(
136
  prompt, # str representing string value in 'Prompt' Textbox component
137
  100, # int | float representing numeric value between 100 and 200 in 'Steps' Slider component
 
139
  api_name="/predict"
140
  )
141
  print(result)
142
+ return result
143
  except:
144
  raise gr.Error("Tango space API is not ready, please try again in few minutes ")
145