Spaces:
Runtime error
Runtime error
no error
Browse files
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)
|