Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,8 +47,20 @@ def apifunction():
|
|
| 47 |
except Exception as e:
|
| 48 |
print(f"Error: {e}")
|
| 49 |
return jsonify({"error": str(e)}), 500
|
| 50 |
-
|
| 51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
if __name__ == '__main__':
|
| 53 |
app.run(host='0.0.0.0', port=7860)
|
| 54 |
# from flask import Flask, request, jsonify
|
|
|
|
| 47 |
except Exception as e:
|
| 48 |
print(f"Error: {e}")
|
| 49 |
return jsonify({"error": str(e)}), 500
|
| 50 |
+
|
| 51 |
+
@app.route('/botTest', methods=['POST'])
|
| 52 |
+
def process():
|
| 53 |
+
try:
|
| 54 |
+
print('In process [Try]')
|
| 55 |
+
data = request.get_json()
|
| 56 |
+
# Extracting values
|
| 57 |
+
# filePath = data.get('filePath')
|
| 58 |
+
# groupName = data.get('groupName')
|
| 59 |
+
print(data)
|
| 60 |
+
return jsonify('recieved')
|
| 61 |
+
except Exception as e:
|
| 62 |
+
print(f"Error: {e}")
|
| 63 |
+
return jsonify({"error": str(e)}), 500
|
| 64 |
if __name__ == '__main__':
|
| 65 |
app.run(host='0.0.0.0', port=7860)
|
| 66 |
# from flask import Flask, request, jsonify
|