Spaces:
Sleeping
Sleeping
Update app.py
Browse files34 unmodified lines353637383934 unmodified linesprint(f"Error: {e}")return jsonify({"error": "An error occurred while processing your request."}), 500if __name__ == "__main__":app.run(host="0.0.0.0", port=7860)34 unmodified lines35363738394034 unmodified linesprint(f"Error: {e}")return jsonify({"error": "An error occurred while processing your request."}), 500if __name__ == '__main__':port = int(os.environ.get('PORT', 7860))app.run(host='0.0.0.0', port=port)
app.py+3-2