Spaces:
Runtime error
Runtime error
add stringify response
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def pygen_func(code_nl):
|
|
25 |
# prediction = req.request(CT5_METHOD, CT5_URL, data=payload)
|
26 |
# prediction = req.request(CT5_METHOD, CT5_URL, json=req_data)
|
27 |
# answer = json.loads(prediction.content.decode("utf-8"))
|
28 |
-
return 'BOOM! ' + output # + ' BOOM!!: ' + answer
|
29 |
|
30 |
iface = gr.Interface(pygen_func,
|
31 |
[
|
|
|
25 |
# prediction = req.request(CT5_METHOD, CT5_URL, data=payload)
|
26 |
# prediction = req.request(CT5_METHOD, CT5_URL, json=req_data)
|
27 |
# answer = json.loads(prediction.content.decode("utf-8"))
|
28 |
+
return 'BOOM! ' + str(output) # + ' BOOM!!: ' + answer
|
29 |
|
30 |
iface = gr.Interface(pygen_func,
|
31 |
[
|