Spaces:
Sleeping
Sleeping
DmitrMakeev
commited on
Commit
•
c741805
1
Parent(s):
5e27817
Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,9 @@ def predict():
|
|
18 |
def avp():
|
19 |
incoming = request.get_json()
|
20 |
print(incoming)
|
21 |
-
#
|
22 |
-
|
23 |
-
|
|
|
24 |
if __name__ == '__main__':
|
25 |
app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))
|
|
|
18 |
def avp():
|
19 |
incoming = request.get_json()
|
20 |
print(incoming)
|
21 |
+
# Сохраняем принятый входящий запрос в переменной "outs"
|
22 |
+
outs = incoming
|
23 |
+
# Возвращаем параметр "outs" в виде строки JSON
|
24 |
+
return json.dumps(outs)
|
25 |
if __name__ == '__main__':
|
26 |
app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))
|