Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- beta/api/api.py +3 -0
beta/api/api.py
CHANGED
|
@@ -59,6 +59,9 @@ def get_file(task_id,name):
|
|
| 59 |
return send_file( f"{file}", as_attachment=True), 200
|
| 60 |
|
| 61 |
|
|
|
|
|
|
|
|
|
|
| 62 |
|
| 63 |
if __name__ == '__main__':
|
| 64 |
app.run(debug=True)
|
|
|
|
| 59 |
return send_file( f"{file}", as_attachment=True), 200
|
| 60 |
|
| 61 |
|
| 62 |
+
@app.route('/', methods=['GET'])
|
| 63 |
+
def index():
|
| 64 |
+
return jsonify({'message': 'Hello, World!'}), 200
|
| 65 |
|
| 66 |
if __name__ == '__main__':
|
| 67 |
app.run(debug=True)
|