sahil2801 commited on
Commit
0591543
·
1 Parent(s): f8a5464
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -13,10 +13,7 @@ def call_model(prompt):
13
  "max_length":1000
14
 
15
  }
16
- out = banana.run(api_key, model_key, model_parameters)
17
- if out.message!="success":
18
- return "error"
19
-
20
  return out["modelOutputs"][0]["output"]
21
 
22
  iface = gr.Interface(fn=call_model, inputs="text", outputs="text",examples=examples,description=description,title=title)
 
13
  "max_length":1000
14
 
15
  }
16
+ out = banana.run(api_key, model_key, model_parameters)
 
 
 
17
  return out["modelOutputs"][0]["output"]
18
 
19
  iface = gr.Interface(fn=call_model, inputs="text", outputs="text",examples=examples,description=description,title=title)